我正在使用ARM模板在不同地区部署经典云服务,到目前为止,所有部署都使用相同的VM类型(Standard_D2_v2(,但发现该VM并非在我要部署的所有地区都可用。根据部署区域选择VM类型的选项有哪些?
有些地区没有这些可用的尺寸。你能把虚拟机的大小改成下面的吗
Standard_B1ls1。如果您使用Micorosoft Azure ,您可能还需要检查成本
在您尝试部署的区域中,该大小可能存在问题,或者可能不可用。所以,你可能会得到这个错误:
The operation '{Operation ID}' failed: 'The requested VM tier is currently not available in Region ({Region ID}) for this subscription. Please try another tier or deploy to a different location.'.
要检查该地区可用于订阅的大小,您可以通过以下命令使用azure Powershell或azure CLI:
az vm list-skus --location southcentralus --output table
--Azure CLIGet-AzComputeResourceSku | where {$_.Locations -icontains "centralus"}
--Azure Powershell
在获得输出后,如果受到限制,您会发现NotAvailableForSubscription意味着您不能使用该vm大小。