我有一个VN和两个子网,我要创建一个在区域1上没有公共IP的VM,然后创建一个负载平衡并创建一个后端池,并将后端池与VM放在同一VN中。
我现在尝试将backendpool与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}"}]}
我不知道自己在哪里做错了?
答案 0 :(得分:0)
您可以创建一个 Standard 负载均衡器,而不是与后端VM区域具有相同区域的Basic SKU。
要在一个区域内对齐并保证您的前端和后端, 只能将同一区域内的虚拟机放入 相应的后端池。
要在多个区域中寻址虚拟机,请放置虚拟 从多个区域到同一后端池的计算机。