powershell - 如何查找 Azure 区域中可用的最大更新域/故障域

标签 powershell azure azure-powershell azure-availability-set

据我所知,查询允许在 Azure 中创建可用性集的最大更新域或故障域的唯一方法是传递非常大的值,然后解析错误消息。有没有更好的方法来查询最大值?

例如执行New-AzureRmAvailabilitySet -PlatformUpdateDomainCount 100 -PlatformFaultDomainCount 100 <other parameters>将失败并出现如下所示的错误:

ErrorCode: InvalidParameter
ErrorMessage: The specified fault domain count 100 must fall in the range 1 to 2.
StatusCode: 400
ReasonPhrase: Bad Request

最佳答案

也许你可以在这个 article 中找到最大的故障域:

enter image description here enter image description here

默认情况下,最大更新域为20

关于powershell - 如何查找 Azure 区域中可用的最大更新域/故障域,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/49779604/

相关文章:

powershell - PowerShell 中的成员类型(ScriptProperty、Property 和 NoteProperty)

azure - 在同一 Azure 访问审查 (API) 中确定多个组的范围

c# - 如何在 Visual Studio 2013 中安装 WindowsAzure.Storage?

azure - 从 txt 文件读取并转换为托管磁盘

PowerShell循环性能: why does adding a function call make this loop faster?

用于列出组成员的 Windows PowerShell 命令 - 微调

powershell - 在 Powershell 中更新 VSTS WorkItem 的正确 Invoke-RestMethod 语法是什么 - 构建包含 Windows 路径的 JSON 字符串

bash - 在 Azure Devops 中,如何在 "Azure CLI task v.2"运行的 shell 脚本中使用管道变量?

azure - Powershell : Using variables when trying to add users to group

azure - Set-AzKeyVaultAccessPolicy : Cannot validate argument on parameter 'VaultName' . 参数为 null 或为空