Created
June 19, 2019 06:18
-
-
Save joostmeijles/338e7001c671844fcb608bc99c7139c2 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$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