英文:
Regarding Deleting public IP without effecting VM
问题
在我的当前Azure平台中,我使用az cli命令创建了VM规模集。然后默认情况下它创建了一个负载均衡器和公共IP,并与之关联。现在我想删除这个公共IP,因为我不再需要它。我尝试删除它,但出现了一个错误,说这个IP与VM关联,我尝试取消关联它,但找不到该选项。我已经检查过是否可以从负载均衡器前端IP配置或后端池中删除它,但无法这样做。我需要在不影响正在运行的VM的情况下摆脱它。有人可以帮助我吗?
如果需要更多详细信息,请告诉我。
我期望得到一个删除公共IP而不删除现有VM的答案。
我尝试过以下操作:
英文:
In my current azure platform I have created vm scale set using az cli command. Then by default it created a load balancer and public ip and got associated with it. Now I want to delete this public ip, because I don't have any need with this. I am trying to delete this , but getting error that this IP is associated with vm, I am trying to disassociate it, but not able to find that option. I have checked to delete from LB frontend IP configuration or backend pool, but couldn't do so. I need to get rid this without effecting my VM which is running. Could someone help me.
Let me know if more details are needed
I am expecting for an answer to delete the public IP without deleting the existing VM.
I tried below
答案1
得分: 0
已创建虚拟机规模集并与公共 IP 关联的负载均衡器:
负载均衡器前端 IP:
当我尝试删除 vmss 的公共 IP 时,我收到相同的错误。
> 注意,您不能在未从负载均衡器中删除它的情况下删除 vmss 的公共 IP。为此,您需要在负载均衡器中创建新的公共 IP,然后删除与 vmss 关联的先前 IP。
在我的情况下,在负载均衡器中创建了一个新的公共 IP,即使对于 vmss 也不是必需的:
现在,我可以删除 vmss 的公共 IP:
一旦刷新,vmss 的公共 IP 将成功删除:
英文:
Created virtual machine scale set and load balancer associated with public Ip:
Load balancer frontend Ip:
When I tried to delete the public IP of vmss, I got same error.
> Note that, you cannot delete the public IP of vmss without deleting it from the load balancer. For that, you need to create new public IP in load balancer and then delete the previous IP that is associated with vmss.
In my case, created one new public Ip inside load balancer you must have Ip for load balancer even its not necessary for vmss :
Now, I can delete the public Ip of vmss:
Once refresh the vmss public Ip is deleted successfully:
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论