Skip to content
David Kittell
David Kittell

Application & System: Development / Integration / Orchestration

  • Services
    • Application Development
    • Online Application Integration
  • Code
  • Online Tools
  • Tech Support
David Kittell

Application & System: Development / Integration / Orchestration

Azure CLI – Download All Blobs

Posted on September 15, 2017 By David Kittell

If you ever need to get your files out of Azure this script will help you get your files out of Blob Storage

azBlob="<blob name>"
azContainer="<container name>"
azStorageKey="<primary or secondary storage key>"

fpDestination="$HOME/Desktop/$azBlob/$azContainer" # Change this to a path you want

mkdir -p $fpDestination

echo "Listing the blobs from $sContainer..."
az storage blob list --container-name $azContainer --output table --account-key $AZURE_STORAGE_ACCESS_KEY

echo "Download all blobs from $sContainer to $fpDestination..."
az storage blob download-batch --account-key $azStorageKey --destination $fpDestination --source $azContainer
All information on this site is shared with the intention to help. Before any source code or program is ran on a production (non-development) system it is suggested you test it and fully understand what it is doing not just what it appears it is doing. I accept no responsibility for any damage you may do with this code.

Related

Azure Code

Post navigation

Previous post
Next post

Related Posts

Update Ektron License

Posted on July 19, 2013October 26, 2015

After applying this update you will need to restart the services and in some case restart the server completely. SELECT lic_key FROM Settings SELECT module_license FROM module_licenses UPDATE Settings SET lic_key = ‘<License>’ UPDATE module_licenses SET module_license = ‘<License>’ Originally Posted on July 19, 2013Last Updated on October 26, 2015…

Read More

Validate Links

Posted on August 15, 2013October 26, 2015

function validatelink($link) { // Create a curl handle to a location $ch = curl_init($link); curl_setopt($ch, CURLOPT_FAILONERROR, true); curl_setopt($ch, CURLOPT_NOBODY, true); if (curl_exec($ch) === false) { echo ‘INVALID: ‘ . $link . " " . curl_error($ch); } else { echo ‘VALID: ‘ . $link; } // Close handle curl_close($ch); } Example

Read More

LDAP Dates Converted

Posted on July 25, 2013October 26, 2015

Dates that look like 127524839567199000 (pwdLastSet, accountExpires, lastLogonTimestamp, etc.) IF( B16>0 ,B16/864000000000 – 109205 ,"" ) Example: 130186556607343750 converts to 40921.80861 40921.80861 in Excel with cell formatting of Date/Time will show as January 13th, 2012 7:24 PM Dates that look like 20050210223453.0Z (whenChanged) DATEVALUE( CONCATENATE( (LEFT(TRIM(B9),4)) ,"-" ,(RIGHT(LEFT(TRIM(B9),6),2)) ,"-" ,RIGHT(LEFT(TRIM(B9),8),2)…

Read More

Code

Top Posts & Pages

  • PowerShell - Rename Pictures to Image Taken
  • Front Page
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions

Recent Posts

  • Javascript – Digital Clock with Style
  • BASH – Web Ping Log
  • BASH – Picture / Video File Name Manipulation
  • Mac OSX Terminal – Create SSH Key
  • Bash – Rename Picture

Top Posts

  • PowerShell - Rename Pictures to Image Taken
  • C# - Start/Stop/Restart Services
  • MacPorts / HomeBrew - Rip CD tracks from terminal
  • PowerShell - Show File Extensions
  • Open On Screen Keyboard (OSK)
  • SQLite - Auto-Increment / Auto Generate GUID
©2025 David Kittell | WordPress Theme by SuperbThemes