Skip to content

Instantly share code, notes, and snippets.

@joostmeijles
Created June 19, 2019 06:18
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 joostmeijles/338e7001c671844fcb608bc99c7139c2 to your computer and use it in GitHub Desktop.
Save joostmeijles/338e7001c671844fcb608bc99c7139c2 to your computer and use it in GitHub Desktop.
$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