使用 ARM Powershell 或门户在 Azure 订阅中查找可用的虚拟机大小

Find Available Virtual Machine Sizes in Azure Subscription Using ARM Powershell or Portal

我正在寻找 this Stack Overflow Question

的 Powershell Azure 资源管理器(非经典)版本

我正在尝试查找每个订阅的可用 VM 大小,而不是每个区域。我有两个 Azure 订阅,一个来自 MSDN,一个不是。 MSDN 的订阅允许我创建 DS2 v2 VM,但另一个不允许我创建任何 DS2 机器(即使我也在 WestUS 中创建这些机器),所以我必须使用 L4。显然,这与 Microsoft 所谓的 "tier".

有关

我想知道如何使用新的 ARM Powershell 命令在订阅中找到所有可用的 VM 大小(如果可能)。

或者,如果有一种方法可以在门户中查看每个订阅的可用 VM 大小列表,那也可以。

我尝试使用以下脚本获取此信息:

Add-AzureRmAccount

Set-AzureRmContext -SubscriptionId $subscriptionID
Get-AzureRoleSize

但我收到一条错误消息 ("No default description has been designated")。我怀疑这是因为我混合了 ARM 和 ACM Powershell 命令。

I have two Azure subscriptions, one from MSDN, and one not. The Subscription from MSDN allows me to create DS2 v2 VMs, but the other one does not allow me to create any DS2 machines (even though I am also creating these machines in WestUS), so I have to use an L4.

默认情况下,Azure 支持每个区域 20 个核心。您可以使用 Get-AzureRmVMUsage -Location yourregion 来检查。

如果您想将限制或配额提高到默认限制以上,open an online customer support request at no charge。限制不能超过最大限制值。

您还可以在门户中看到每个订阅的可用 VM 大小列表。

Subscription-->Usage + quotas

另外,你可以参考这个question

更新:

如果您的内核没有达到所有限制,您的订阅中似乎没有 DsV2 SKU,请参考此link 解决此问题。