Skip to content

Instantly share code, notes, and snippets.

@mwinkle
Created August 15, 2014 01:03
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save mwinkle/8fb31f6c7c096a60dc44 to your computer and use it in GitHub Desktop.
Save mwinkle/8fb31f6c7c096a60dc44 to your computer and use it in GitHub Desktop.
Uploading data to Azure Blob Store
$storageAccountName = "STORAGE_ACCOUNT_NAME"
$destinationContainer = "DESTINATION_CONTAINER_NAME"
$context = New-AzureStorageContext $storageAccountName -StorageAccountKey (get-azurestoragekey $storageAccountName).Primary
Set-AzureStorageBlobContent -Blob "path/to/your/blob" -Container $destinationContainer -File "c:\your\local\path" -Context $context -Force
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment