首页 > 解决方案 > Azure:创建或更新虚拟机 AzureMolyVM1 时出错 - Azure 错误:SkuNotAvailable

问题描述

我正在尝试在 Azure 上创建一个 VM。我有现收现付订阅计划,但目前仍在免费时间。

挑战是我无法找到在任何地区都可用的单个 VM。我去创建虚拟机,然后我选择链接来选择一个 VM 大小,所有大小都被禁用。我无法选择任何东西。

我尝试的下一件事是使用 Ansible。在 powershell 上,我可以看到该图像在我的区域中非常可用。

$ az vm image list -f CentOS -l canadacentral
[
  {
    "offer": "CentOS",
    "publisher": "OpenLogic",
    "sku": "7.5",
    "urn": "OpenLogic:CentOS:7.5:latest",
    "urnAlias": "CentOS",
    "version": "latest"
  }
]

但是使用此映像创建 VM 会引发以下错误:

"Error creating or updating virtual machine azuremolyvm3 - Azure Error: SkuNotAvailable\nMessage: 
The requested size for resource 
'/subscriptions/fgfgfgfg-4cf4-43b8-b29f-f6448ecf09bd/resourceGroups/molygp/providers/Microsoft.Compute/virtualMachines/azuremolyvm3' is currently not available in location 'canadacentral' zones '' for subscription 'fgfgfgfg-4cf4-43b8-b29f-f6448ecf09bd'. 

Please try another size or deploy to a different location or zones. 
See https://aka.ms/azureskunotavailable for details.",

我错过了什么?

标签: azureansible

解决方案


推荐阅读