Need help to delete Secured Virtual Hub

Jeeshu Singla 1 Reputation point
2020-07-05T13:23:12.923+00:00

We are trying to delete a Secured virtual hub. But we are getting the below error.

Failed to update the association for the resource 'EAST2-US-SvHUB'. Error: The Resource 'Microsoft.Network/firewallPolicies/Test-policy' under resource group 'Test-east-us' was not found. For more details please go to https://aka.ms/ARMResourceNotFoundFix

It seems that we have already deleted the Test-policy that is linked to the Azure Firewall.
Below is the error while deleting the Azure firewall from Powershell.

Remove-AzFirewall: Long running operation failed with status 'Failed'. Additional Info:'An error occurred.'
StatusCode: 200
ReasonPhrase: OK
Status: Failed
ErrorCode: InternalServerError
ErrorMessage: An error occurred.

Azure Virtual WAN
Azure Virtual WAN
An Azure virtual networking service that provides optimized and automated branch-to-branch connectivity.
222 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. suvasara-MSFT 10,041 Reputation points
    2020-07-06T13:10:53.277+00:00

    Greetings,

    You should not be able to delete the firewall policy without detaching it from the respective secure hub. I have deployed the similar setup where I have noticed that detaching the policy results in hub deletion. This might not be part of the design. I would suggest you to drop us a mail at azcommunity@microsoft.com for deeper investigation on this issue.


    Please do not forget to "Accept the answer" wherever the information provided helps you to help others in the community.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.