Created
February 23, 2019 06:50
-
-
Save PatrickKalkman/3a46db4649d399059f6ed8eb6ff0552b to your computer and use it in GitHub Desktop.
Copy an exported snapshot to a storage account
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 = "destinationStorageAccountName" | |
$storageAccountKey = "destinationStorageAccountKey" | |
$absoluteUri = "The URL of the exported snapshot" | |
$destContainer = "vhds" | |
$blobName = "sb-prd-sql-disk-os.vhd" | |
$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