Welcome to the Microsoft Q&A forum.
I understand it correctly you are trying to delete an Azure Firewall, Azure firewall policy deployed in the MPN subscription that is disabled because it has reached its maximum spend limit. The Azure Firewall is in Failed state and you are unable to delete the firewall policy as it is linked to Azure Firewall.
As the subscription is disabled, I am not sure if you are still able to access the resources or able to run any PowerShell Commands to modify the resources. If you are not able to access the resources, you will have to file a support ticket with us to resolve the issue. You can file a Billing and subscription management support ticket as it is free to all customers. Please let me know if you need any help here.
If you are able to access the resources or able to run any PowerShell Commands to modify the resources. You can follow the steps mentioned below to delete the resources.
- Firewall is in failed state: As documented here if the resource is in the failed state, further operations on the resource or on other resources that depend on it might fail. You need to revert the state back to succeeded before running other operations. The easiest way to achieve this task is to use Azure PowerShell. Issue a resource-specific Get command that fetches all the current configuration for the resource. Next, run a Set command, or equivalent, to commit to Azure a write operation that contains all the resource properties as currently configured. You can run this command for Azure Firewall to bring it back to succeeded state.
Get-AzVirtualNetworkGatewayConnection -Name "your_resource_name" -ResourceGroupName "your_resource_group_name" | Set-AzVirtualNetworkGatewayConnection
- Unable to delete the firewall policy as it is linked to Azure Firewall: If you are able to bring the firewall back in succeeded stage. In order to delete the firewall policy you need to diss-associate from the firewall first. You can do this by following the steps mentioned in this thread.
After deleting the Firewall and Firewall policy you should be able to delete the Public IP and the virtual Network.
Hope this helps! Please let me know if you have any questions.
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.