Last active
April 8, 2021 15:22
-
-
Save pmatthews05/e2e151b5611b137ad5f84ec43ddfeb22 to your computer and use it in GitHub Desktop.
azcli Migration
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
$SourceAccountName = "[SOURCEACCOUNTNAME]" | |
$SourceContainer = "[SOURCECONTAINERNAME]" | |
#Read and List | |
#Ensure SourceBlobSAS is in single and double quotes for PowerShell | |
$SourceBlobSAS = '"[SOURCESAS]"' | |
$DestinationAccountName = "[DESTINATIONACCOUNTNAME]" | |
$DestinationContainer = "[DESTINATIONCONTAINERNAME]" | |
#Full Access | |
#Ensure DestinationBlobSAS is in single and double quotes for PowerShell | |
$DestinationBlobSAS = '"[DESTINATIONSAS]"' | |
az storage blob copy start-batch --source-account-name $SourceAccountName ` | |
--source-container $SourceContainer ` | |
--source-sas $SourceBlobSAS ` | |
--account-name $DestinationAccountName ` | |
--destination-container $DestinationContainer ` | |
--sas-token $DestinationBlobSAS | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment