Unable to delete Public IP after deleting Firewall

Morten Kiil Finsås 1 Reputation point
2021-03-29T13:23:57.853+00:00

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 Firewall
Azure Firewall
An Azure network security service that is used to protect Azure Virtual Network resources.
564 questions
Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,139 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. SaiKishor-MSFT 17,181 Reputation points
    2021-03-29T20:35:43.223+00:00

    @Morten Kiil Finsås

    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.

    0 comments No comments