我有一个 VN 和两个子网,我正在创建一个在区域 1 上没有公共 IP 的 VM。然后我创建了一个负载平衡并创建了一个后端池,并将后端池放在与 VM 相同的 VN 中。
我现在尝试将后端池与 VM 相关联。正如我所说,我的虚拟机在 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}"}]}
我不知道我在哪里做错了?