question

MortenKF1984 avatar image
0 Votes"
MortenKF1984 asked SaiKishor-MSFT edited

Unable to delete Public IP after deleting Firewall

I deleted the associated FW that had four Public IP from a Public IP Prefix resource, but after deletion of firewall, I was only able to delete three of four IP addresses.

The error message still states that it is assosiated with a deleted firewall, and I am not able to recreate the firewall with the same name and delete assosiations.

Error message when deleting:
azhnoe-fw-01-pip-01-01: Public IP address /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/FirewallTesting2/providers/Microsoft.Network/publicIPAddresses/azhnoe-fw-01-pip-01-01 can not be deleted since it is still allocated to resource /subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/FirewallTesting/providers/Microsoft.Network/azureFirewalls/azhnoe-fw-01/azureFirewallIpConfigurations/azhnoe-fw-01-pip-01-01. 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. (Code: PublicIPAddressCannotBeDeleted)

Resource group "FirewallTesting" and firewall "azhnoe-fw-01" does not exist.

In the resource "azhnoe-fw-01-pip-01-01" it states it is Associated with "azhnoe-fw-01" that does not exist, if I click the link it states: "Resource not found".

Do anyone have any suggestion to get this fixed? I was not able to see anything in Resource explorer and deassosiate did not help, as the resource does not exist.

azure-virtual-networkazure-firewall
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

1 Answer

SaiKishor-MSFT avatar image
0 Votes"
SaiKishor-MSFT answered SaiKishor-MSFT edited

@MortenKF1984

Please try to remove the firewall using Remove-AzFirewall command and see if that clears up anything. If that does not help, I would suggest reaching out to Azure Support directly and they will be able to assist you with resolving this issue. Hope this helps.

Please let us know if you have any further questions and we will be glad to assist you further. Thank you!

Remember:

Please accept an answer if correct. Original posters help the community find answers faster by identifying the correct answer. Here is how.

Want a reminder to come back and check responses? Here is how to subscribe to a notification.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.