gpt4 book ai didi

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

转载 作者:行者123 更新时间:2023-12-03 01:48:14 25 4
gpt4 key购买 nike

我正在寻找 this Stack Overflow Question 的 Powershell Azure 资源管理器(非经典)版本

我正在尝试查找每个订阅的可用虚拟机大小,而不是每个区域。我有两份 Azure 订阅,一份来自 MSDN,另一份不是。 MSDN 的订阅允许我创建 DS2 v2 虚拟机,但另一个不允许我创建任何 DS2 计算机(即使我也在 WestUS 中创建这些计算机),因此我必须使用 L4。显然,这与微软所说的“层”有关。

如果可能的话,我想知道如何使用新的 ARM Powershell 命令查找订阅中的所有可用 VM 大小。

或者,如果有办法在门户中查看每个订阅的可用虚拟机大小列表,也可以。

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

Add-AzureRmAccount

Set-AzureRmContext -SubscriptionId $subscriptionID
Get-AzureRoleSize

但我收到一条错误消息(“未指定默认描述”)。我怀疑这是因为我混合了 ARM 和 ACM Powershell 命令。

最佳答案

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

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

enter image description here

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

您还可以在门户中查看每个订阅的可用虚拟机大小列表。

Subscription-->Usage + quotas

enter image description here

另外,你可以引用这个question .

更新:

如果您的核心未达到全部限制,则您的订阅中似乎没有 DsV2 SKU,请参阅此 link来解决这个问题。

关于azure - 使用 ARM Powershell 或门户在 Azure 订阅中查找可用的虚拟机大小,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/42989044/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com