Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
Did you try to delete the Public IP using Powershell command?
Are you getting the same error ?
Cheers,
Kapil
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
I was trying to delete the Public IP address 'IP-TestARM', which is not associated to any resources. But the operation failed and the error shows:
'Failed to delete public IP address 'IP-TestARM'. Error: Public IP address /subscriptions/{hideSubsId}/resourceGroups/TestARM/providers/Microsoft.Network/publicIPAddresses/IP-TestARM can not be deleted since it is still allocated to a cloud service. In order to delete the public IP address, delete the associated cloud service and then retry the operation.'
But I cannot identify which resource is this IP associated to. I tried to run the following command in PowerShell:
Get-AzPublicIpAddress -ResourceGroupName "TestARM" -Name "IP-TestARM-Staging" | Select-Object -Property *
The result shows that IpConfigurationText
is null and IpConfiguration
is empty, providing no useful information.
Can anyone guide me on how to delete this Public IP address?
I'm not sure which resource this IP was previously associated with. I need to identify the resource and ensure it has been successfully deleted. How can I access the logs to verify this?
Welcome to the Microsoft Q&A Platform. Thank you for reaching out & I hope you are doing well.
Did you try to delete the Public IP using Powershell command?
Are you getting the same error ?
Cheers,
Kapil
Hi,
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