In Azure Portal->Dashboard->All Resources-> Check 'show hidden types' and make sure that no filters are applied. Check, if there are some resources as reported in the error message while deleting the PIP. Delete those, if listed there and try deleting the PIP again
Unable to delete public ip resource
I have a public ip resource got stuck in azure, getting following errros:
Failed to delete public IP address 'pip-agw-prod0-001'. Error: Public IP address rg-dms-prod0/providers/Microsoft.Network/publicIPAddresses/pip-agw-prod0-001'>pip-agw-prod0-001 can not be deleted since it is still allocated to resource Microsoft.Network/loadBalancers/appgwLoadBalancer/frontendIPConfigurations/appGwPublicFrontendIp001. In order to delete the public IP, disassociate/detach the Public IP address from the resource.
However, the associated resource is already deleted, there is no way for me to delete it myself.
Please help, thanks.
Can you please check the below URL. You will have to modify by adding the Subscription and Resource Group in the below URL
Pls check whether you can Find an IP address named
appGwPublicFrontendIp001- this is the dependency that preventing you from deleting the Public IP.
You can try deleting this and try deleting the Public IP
Sign in to comment
Sort by: Most helpful
Looks like a permission issue. To perform the deletion, you need to be at least a network contributor on the subscription level or on the needed resource level.
Have you tried from PS?
Remove-AzPublicIpAddress -Name $publicIpName -ResourceGroupName $rgName
Can you try re-create the resource(exact same name and same resource group) and associate it with the Public IP? Then you can delete the resource first and delete the Public IP.
Hope this might be helpful.
hi Wenjian Xu,
I had contacted microsoft support, the the support engineer was able to delete the public ip for me in the back end. Thank you.