【发布时间】:2019-06-10 22:00:07
【问题描述】:
所以我有一个大小为 90mb 的原始 vhd 文件。
使用 Azure Powershell 模块 Add-AzureRMVhd 上传 vhd 会导致上传的 vhd 大小为 2gb。
Add-AzureRmVhd -LocalFilePath $sourceVHD -Destination $destinationVHD -ResourceGroupName $resourceGroupName -NumberOfUploaderThreads 5
使用 azure cli 上传 vhd 会导致上传的 vhd 大小为 90mb。
az storage blob upload --account-name tstorage --container-name tcontainer --file /home/azure/images/test.vhd --name test.vhd --type page
我可以使用 2gb vhd 创建图像,但不能使用 90mb。
有没有办法用AZ cli执行powershell模块的功能?
【问题讨论】:
-
我可以知道你为什么坚持使用 azure cli 吗?
标签: azure powershell sdk command-line-interface azure-cli