Azure virtual network gateway provisioning state stuck - Provisioning state Updating

Jippe ZZZ 65 Reputation points
2024-04-10T18:28:31.47+00:00

Hi!

My Azure VPN Gateway is stuck. The provisioning state shows status: updating in the prorperties page. I am not able to reset nor delete the VPN Gateway. When I try to reset the gateway from Azure portal or fom Azure cloud shell I get the same response: "Reset-AzVirtualNetworkGateway: Another operation on this or dependent resource is in progress." When I try to diagnose the problem from Azure portal (using support and troubleshoot functionality) no errors / problems / issues are detected.

When I try to open the management.azure.com URI "https://management.azure.com/subscriptions/2e47ad07-ee4f-4c6b-85f4-a3e2e92b5ff3/providers/Microsoft.Network/locations/westeurope/operations/21293e12-d355-4f52-8d7b-3429c1fdc865?api-version=2023-02-01." listed in the Azure cloud shell error message I receive an error:

{"error":{"code":"AuthenticationFailed","message":"Authentication failed. The 'Authorization' header is missing."}}

The VPN Gateway was provisioned two weeks ago. VPN Gateway details: SKU - Basic, Gateway type - VPN, VPN type- Route-based.

Any ideas how to rset or delete the gateway resource.

BR, Jippe

Azure VPN Gateway
Azure VPN Gateway
An Azure service that enables the connection of on-premises networks to Azure through site-to-site virtual private networks.
1,795 questions
Azure
Azure
A cloud computing platform and infrastructure for building, deploying and managing applications and services through a worldwide network of Microsoft-managed datacenters.
1,460 questions
0 comments No comments
{count} votes

Accepted answer
  1. ChaitanyaNaykodi-MSFT 27,481 Reputation points Microsoft Employee Moderator
    2024-04-11T02:54:30.7833333+00:00

    @Jippe ZZZ

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this! Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.


    Issue:

    The VPN Gateway was stuck in provisioning state

    Solution:

    I was able to delete the resource after I performed the following steps:

    Set-AzVirtualNetworkGateway -VirtualNetworkGateway $Gateway -adminstate enabled

    After this I was able to run the command provided by the support advisor:

    Get-AzVirtualNetworkGateway -ResourceGroupName myrg -Name MyVPNGateway | Set-AzVirtualNetworkGateway

    After the command run successfully I was able to delete the VPN Gateway


    If you have any other questions or are still running into more issues, please let me know. Thank you again for your time and patience throughout this issue.

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.

    1 person found this answer helpful.
    0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Jippe ZZZ 65 Reputation points
    2024-04-10T20:01:12.08+00:00

    I was able to delete the resource after I performed the following steps:

    Set-AzVirtualNetworkGateway -VirtualNetworkGateway $Gateway -adminstate enabled

    After this I was able to run the command provided by the support advisor:

    Get-AzVirtualNetworkGateway -ResourceGroupName myrg -Name MyVPNGateway | Set-AzVirtualNetworkGateway

    After the command run successfully I was able to delete the VPN Gateway

    BR, Jippe

    0 comments No comments

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.