关于删除公共IP而不影响虚拟机

huangapple go评论76阅读模式
英文:

Regarding Deleting public IP without effecting VM

问题

在我的当前Azure平台中,我使用az cli命令创建了VM规模集。然后默认情况下它创建了一个负载均衡器和公共IP,并与之关联。现在我想删除这个公共IP,因为我不再需要它。我尝试删除它,但出现了一个错误,说这个IP与VM关联,我尝试取消关联它,但找不到该选项。我已经检查过是否可以从负载均衡器前端IP配置或后端池中删除它,但无法这样做。我需要在不影响正在运行的VM的情况下摆脱它。有人可以帮助我吗?

如果需要更多详细信息,请告诉我。

我期望得到一个删除公共IP而不删除现有VM的答案。

我尝试过以下操作:

关于删除公共IP而不影响虚拟机

英文:

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

关于删除公共IP而不影响虚拟机

enter image description here

答案1

得分: 0

已创建虚拟机规模集并与公共 IP 关联的负载均衡器:

关于删除公共IP而不影响虚拟机

负载均衡器前端 IP:

关于删除公共IP而不影响虚拟机

当我尝试删除 vmss 的公共 IP 时,我收到相同的错误。

关于删除公共IP而不影响虚拟机

> 注意,您不能在未从负载均衡器中删除它的情况下删除 vmss 的公共 IP。为此,您需要在负载均衡器中创建新的公共 IP,然后删除与 vmss 关联的先前 IP。

在我的情况下,在负载均衡器中创建了一个新的公共 IP,即使对于 vmss 也不是必需的:

关于删除公共IP而不影响虚拟机

现在,我可以删除 vmss 的公共 IP:

关于删除公共IP而不影响虚拟机

一旦刷新,vmss 的公共 IP 将成功删除:

关于删除公共IP而不影响虚拟机

英文:

Created virtual machine scale set and load balancer associated with public Ip:

关于删除公共IP而不影响虚拟机

Load balancer frontend Ip:

关于删除公共IP而不影响虚拟机

When I tried to delete the public IP of vmss, I got same error.

关于删除公共IP而不影响虚拟机

> 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 :

关于删除公共IP而不影响虚拟机

Now, I can delete the public Ip of vmss:

关于删除公共IP而不影响虚拟机

Once refresh the vmss public Ip is deleted successfully:

关于删除公共IP而不影响虚拟机

huangapple
  • 本文由 发表于 2023年8月5日 13:03:25
  • 转载请务必保留本文链接:https://go.coder-hub.com/76840203.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定