Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
$storageAccountName = "<accountname>"
$storageAccountKey = "<primary or secondary key>"
$absoluteUri = "<url from container blob storage>"
# Create the Azure Blob container first (in the Azure Portal)
$destContainer = "<blob container storage name>"
$blobName = "<blob name, e.g. filename>"
$destContext = New-AzureStorageContext -StorageAccountName $storageAccountName -StorageAccountKey $storageAccountKey
Start-AzureStorageBlobCopy -AbsoluteUri $absoluteUri -DestContainer $destContainer -DestContext $destContext -DestBlob $blobName
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment