1
votes

I am trying to delete the public IP address from azure. I have already removed the associated Network Interface card from Azure but deleting the IP address is throwing the below error.

Public IP address /subscriptions/ddddddd-ddddd-dddd-dddd-dddddddd/resourceGroups/atcsl/providers/Microsoft.Network/publicIPAddresses/pip-VM1_Windows can not be deleted since it is still allocated to resource /subscriptions/ddddddd-ddddd-dddd-dddd-dddddddd/resourceGroups/atcsl/providers/Microsoft.Network/networkInterfaces/nic_VM1_Windows/ipConfigurations/ipconfig1. In order to delete the public IP, disassociate/detach the Public IP address from the resource. To learn how to do this, see aka.ms/deletepublicip.

2

2 Answers

1
votes

It may just takes some minutes until deletion of the network interface went through. If you still see your Network Interface in your resource group

enter image description here

you can also just go to the IP configurations settings of the network interface and click on your configuration

enter image description here

then click "Disassociate" > "Save" and you can delete your public IP.

enter image description here

-2
votes

Thanks I just got stuck with the same problem