[英]"DiskImageNotReady" error when creating VM in Azure using ARM template and JSON
[英]The template deployment failed with error when creating azure spot vm machine
我是 azure 的新手,并尝试使用 windows 服务器 2019 gen2 部署 Spot 虚拟机。 当我尝试创建虚拟机时出现此错误
“模板部署失败并出现错误:'ID 为 '/subscriptions/6b3845e9-2c4e-44c6-baaf-5efb515334c2/resourceGroups/cloud-vcenter/providers/Microsoft.Compute/virtualMachines/EXsi 的资源验证失败并显示消息:'资源 '/subscriptions/6b3845e9-2c4e-44c6-baaf-5efb515334c2/resourceGroups/cloud-vcenter/providers/Microsoft.Compute/virtualMachines/EXsi' 的请求大小当前在订阅 'eastus' 区域'' 位置不可用"
我该如何解决这个错误? 我的帐户属于“Azure for Students”订阅。
“模板部署失败并出现错误:'ID 为 '/subscriptions/6b3845e9-2c4e-44c6-baaf-5efb515334c2/resourceGroups/cloud vcenter/providers/Microsoft.Compute/virtualMachines/EXsi' 的资源验证失败,并显示消息:'The对于订阅 '6b3845e9-2c4e -44c6-baaf-5efb515334c2'。请尝试其他尺寸或部署到不同的位置或区域。有关详细信息,请参阅https://aka.ms/azureskunotavailable 。'。'。(代码:InvalidTemplateDeployment)
这个错误是由于
如果 SKU 不可用,则向 Azure 支持发送 SKU 请求,如果某个区域或区域中没有为您的订阅提供 SKU。
您可以使用命令Get-AzureRmComputeResourceSku检查所选区域中的可用资源,然后继续启动 VM。
Get-AzureRmComputeResourceSku | where {$_.Locations -icontains "eastus"}
Output:
如果您的订阅\位置组合实际可用,您应该使用:
Get-AzVMSize -Location %location%
Output:
它们在 VM 大小方面也有一些限制,Azure Spot 虚拟机不支持
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.