New-AzureBatchPool -VirtualMachineSize 可能的值

New-AzureBatchPool -VirtualMachineSize possible values

我开始深入研究 Azure Batch,尝试从 Powershell 创建一个池,我注意到在 New-AzureBatchPool 命令的 Microsoft 文档页面中 https://docs.microsoft.com/en-us/powershell/module/azurerm.batch/new-azurebatchpool?view=azurermps-6.8.1 他们告诉我们,在参数“-VirtualMachineSize”中我们必须指定虚拟机的大小,好的,但是如果我发送 "Standard_A1" 作为 -VirtualMachineSize 参数,请求失败,但是如果我发送 "Small" (正如我在命令示例中看到的那样)有效!

任何人都知道是否有包含 table 的文档页面将此命令 ("Small") 预期的值类型与正常值 ("Standard_A0", "Standard_L16s_v2" 等等...)?

提前致谢!

看起来你在和上一代一起工作。根据https://docs.microsoft.com/en-us/azure/virtual-machines/windows/sizes-previous-gen

标准 A0 - 使用 CLI 和 PowerShell 的 A4 在经典部署模型中,某些 VM 大小名称在 CLI 和 PowerShell 中略有不同:

Standard_A0 is ExtraSmall
Standard_A1 is Small
Standard_A2 is Medium
Standard_A3 is Large
Standard_A4 is ExtraLarge