簡體   English   中英

在負載均衡器下部署虛擬機在 Azure 中出現錯誤

[英]Deploying a VM under load balancer gives me an error in Azure

我有一個 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}"}]}

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

您可以創建一個標准負載均衡器,而不是使用與后端 VM 區域相同的區域的基本 SKU。

在此處輸入圖像描述

要使您的前端和后端與單個區域保持一致並保證,只需將同一區域內的虛擬機放入相應的后端池中。

要跨多個區域處理虛擬機,請將來自多個區域的虛擬機放置到同一個后端池中。

閱讀標准負載均衡器和可用區了解更多詳細信息。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM