question

IsaacDontjeLindell-4343 avatar image
0 Votes"
IsaacDontjeLindell-4343 asked RansomeVoldy-3547 commented

Azure: Cannot delete a Virtual Network Gateway

I created a Virtual Network Gateway this morning, but wasn't clear on the configuration, so decided to delete it and (eventually) start over. But, I don't seem to be able to delete it from either the portal or Powershell.

At some point while I was trying to clean it up, the resource has ended up in the "failed" provisioning state, but I can't find any information about why.

There are no connections associated with this gateway.

In the portal, the task to delete fails with this error message: The resource operation completed with terminal provisioning state 'Failed'.

Using Powershell, I get this:

> Remove-AzVirtualNetworkGateway -Verbose -Name "<redacted>" -ResourceGroupName "<redacted>"
VERBOSE: Performing the operation "Removing resource ..." on target "<redacted>".

Confirm
Are you sure you want to remove resource '<redacted>'
[Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"): Y
Remove-AzVirtualNetworkGateway: Long running operation failed with status 'Failed'. Additional Info:'An error occurred.'StatusCode: 200
ReasonPhrase: OK
Status: Failed
ErrorCode: InternalServerError
ErrorMessage: An error occurred.


What am I doing wrong? I just need to delete this resource, but the error message provides absolutely no useful information.

azure-virtual-networkazure-vpn-gateway
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

suvasara-MSFT avatar image
0 Votes"
suvasara-MSFT answered RansomeVoldy-3547 commented

@IsaacDontjeLindell-4343, Apologies for the inconvenience caused. I would seek collaboration from our backend team to troubleshoot this issue further. Please do reach us at azcommunity@microsoft.com along with your subscription details for deeper investigation.


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



· 3
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.

I have emailed that address, although I haven't heard anything back since I sent it on Saturday. Is there any additional troubleshooting I can do to figure this out? The virtual network gateway is still stuck in the failed status, and I'd really like to get rid of it since we're currently being billed for it and the public IP address that's associated.

0 Votes 0 ·

Hello @IsaacDontjeLindell-4343, apologies for the delayed response. I have responded to your email just now, please do have a look. Let me know if you have any additional concerns. Thank you!

0 Votes 0 ·

Hi

I have the same problum can you help me also?

0 Votes 0 ·