【问题标题】:Deploying a VM under load balancer gives me an error in Azure在负载均衡器下部署 VM 在 Azure 中出现错误
【发布时间】:2020-07-24 08:46:10
【问题描述】:

我有一个 VN 和两个子网,我正在创建一个在区域 1 上没有公共 IP 的 VM。然后我创建了一个负载平衡并创建了一个后端池,并将后端池放在与 VM 相同的 VN 中。

我现在尝试将后端池与虚拟机相关联。正如我所说,我的虚拟机在 Zone1 中。当我尝试将我的虚拟机关联到负载均衡器的后端池时,我得到以下错误

{"code":"DeploymentFailed","message":"At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/DeployOperations for usage details.","details":[{"code":"BadRequest","message":"{\r\n \"error\": {\r\n \"code\": \"ComputeResourceZoneConstraintDoesNotMatchPublicIPAddressZoneConstraint\",\r\n \"message\": \"Compute resource /subscriptions/69c94256-2d95-43fa-8c2e-ac669cdb621d/resourceGroups/thermo-breast-cancer-rg/providers/Microsoft.Compute/virtualMachines/thermo-breast-cancer-devvm1 has a zone constraint 1 but the PublicIPAddress /subscriptions/69c94256-2d95-43fa-8c2e-ac669cdb621d/resourceGroups/thermo-breast-cancer-rg/providers/Microsoft.Network/publicIPAddresses/12.12.25.25 used by the compute resource via NetworkInterface or LoadBalancer has a different zone constraint Regional.\",\r\n \"details\": []\r\n }\r\n}"}]}

我不知道我在哪里做错了?

【问题讨论】:

    标签: azure azure-load-balancer azure-vm


    【解决方案1】:

    您可以创建一个标准负载平衡器,而不是使用与后端 VM 区域相同的区域的基本 SKU。

    为了使您的前端和后端与单个区域保持一致并保证, 仅将同一区域内的虚拟机放入 对应的后端池。

    要跨多个区域处理虚拟机,请将虚拟 来自多个区域的机器进入同一个后端池。

    阅读Standard Load Balancer and Availability Zones了解更多详情。

    【讨论】:

    • 可以搭配基本款吗?
    • 不可能对区域 VM 使用基本 LB。
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2021-08-09
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多