Upload VHD to Azure using the Azure SDK -


is there way upload vhd azure using azure sdk? aware of same process uploading via powershell (https://docs.microsoft.com/en-us/azure/virtual-machines/windows/classic/createupload-vhd) , achieve using sdk, can performed using linux environment.

according description, can install azure cli 1.0 or cli 2.0 on linux environment.

about how use cli 2.0 upload vhd linux environment, please refer link.

az group create --name myresourcegroup --location westus az storage account create --resource-group myresourcegroup --location westus --name mystorageaccount --kind storage --sku standard_lrs az storage account keys list --resource-group myresourcegroup --account-name mystorageaccount az storage container create --account-name mystorageaccount --account-key key1 --name mydisks az storage blob upload --account-name mystorageaccount --account-key key1 --container-name mydisks --type page --file /path/to/disk/mydisk.vhd --name mydisk.vhd 

about how use cli 1.0 upload vhd linux environment, please refer link.

azure config mode arm azure group create myresourcegroup --location "westus" azure storage account create mystorageaccount --resource-group myresourcegroup --location "westus" --kind storage --sku-name plrs azure storage account keys list mystorageaccount --resource-group myresourcegroup azure storage container create --account-name mystorageaccount --account-key key1 --container myimages azure storage blob upload --blobtype page --account-name mystorageaccount --account-key key1 --container myimages /path/to/disk/mydisk.vhd 

Comments

Popular posts from this blog

Command prompt result in label. Python 2.7 -

javascript - How do I use URL parameters to change link href on page? -

amazon web services - AWS Route53 Trying To Get Site To Resolve To www -