1. Make sure you are on the right account (read https://craigforrester.com/posts/azure-cli-basics-logging-in/)
2. Create sas token.
3. Make sure you are logged in with
azcopy login
4. now copy with for example the following command:
AZcopy copy "c:\App_Data\MyBlobs\*" "https://{{youraccount}}.blob.core.windows.net/vpp?{{your SAS TOKEN }}" --recursive
OR
az storage blob download-batch --account-name customerVPP --source vppnext --destination C:\Users\Downloads\vppnext
# List currently authenticated subscriptions
az account list # Log in to a subscription az login # Display subscriptions by Name and show which is selected az account list --query "[].{Name:name, IsDefault:isDefault}" # Select a specific subscription by name az account set --subscription "Visual Studio Enterprise" # Show usernames associated with specific subscriptions az account list --query "[].{Name:name, User:user.name}" # Show usernames associated with a specific subscription matching Name az account list --query "[?contains(name, 'Visual')].{Name:name, User:user.name}" # Log out of a specific subscription by username az logout --username "user@example.com" # List virtual machines for select account az vm listaz copy to pageblob type : --blob-type=PageBlob
--blob-type=BlockBlob (used in episerver)

No comments:
Post a Comment