Open anish opened 3 years ago
Storage
Hi @anish, it is because disk is not normal storage account. To upload to the link, there are two options:
az storage copy
to upload with destination urlstorage-blob-preview
extension and then upload with --blob-url
in az storage blob upload
command@Juliehzl is there an example of using az storage copy
to upload a vhd to a managed disk ? I don't see any example here, https://docs.microsoft.com/en-us/cli/azure/storage?view=azure-cli-latest#az_storage_copy
is this correct ?
az storage copy -s path/to/test.vhd --destination-account-name aimpipelinestorage --destination-container aimstoragecontainer --account-key "+kz....Xg==" --sas-token "sv=2018-03-28&....ss%3D" -blob-type PageBlob
Describe the bug When using
az storage blob upload
to upload a vhd to a managed disk using SAS uri, upload to blob completes but is never imported as diskTo Reproduce
Expected behavior az disk list will show a non null size for disk
Environment summary apt-get install on Ubuntu 20.04
Additional context I already verified the vhd works, so does the blob upload, I am able to create a disk directly via this command
az disk create -n test-disk2 -g aim-pipeline -l westus2 --source https://aimpipelinestorage.blob.core.windows.net/aimstoragecontainer/test --sku standard_lrs --hyper-v-generation V2 --os-type Linux
but unable to upload a vhd directly to a disk created with
--for-upload
This looks like it's quite related to #10192 which was closed but no update was provided