Azure VPN gateway in provisioning state failed

Danny Roy 0 Reputation points
2023-06-13T17:01:59.12+00:00

Hello,

 

I can’t remove my VPN Gateway, could you help me?

 

I tried this

Quick and easy workaround to fix failed state in Microsoft Azure (techgenix.com)

 

And I tried with this command:

remove-azvirtualnetworkGateway -Name IPMM-STS_VNG -ResourceGroupName "IPMM-STS_RG" -Force

 

It’s always come back to the failed state

thank you

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,769 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,363 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Jackson Martins 10,606 Reputation points MVP Volunteer Moderator
    2023-06-13T18:05:29.77+00:00

    @Danny Roy I will start with a couple of questions to get more clarity on your case:

    1 - Can you post error message here?

    2 - can you run 'remove-azvirtualnetworkGateway -Name IPMM-STS_VNG -ResourceGroupName "IPMM-STS_RG" -Verbose'

    and put error message here

    Possible solutions:

    1 - make sure all connections on the gateway are removed first.

    2 - I've already caught some cases that we managed to delete the public ip before the gateway and the gateway couldn't remove it because of this dependency.

    In this case, only Microsoft support can remove it, you will have to open a support ticket

    https://azure.microsoft.com/en-us/support/create-ticket

    Get in touch if you need more help with this issue.

    --please don't forget to "[Accept the answer]" if the reply is helpful--


  2. Luca Lionetti 3,231 Reputation points
    2023-06-13T19:48:38.0766667+00:00

    Hi,

    Welcome to Microsoft Q&A community forum!

    Hello try to locate the Virtual Network Gateway under resources.azure.com

    image

    Under Microsoft.Network, expand virtualNetworkGateways, select the affected VPN gateway from the list.

    Near the top of the content window of the browser, select the Read/Write push button

    Select the Data(GET,PUT) tab and click on GET, click on Edit without making any changes.

    Then click on PUT, the VPN gateway should recover from the failed state.

    Once the VPN gateway's provisioning state is back to "Success", you can try deleting it from the portal.

    If the resource is stuck in a deletion or updating state, the operation helps to resolve the issue

    Hope this helps

    Cheers

    Luca

    Please "Accept as Answer" and Upvote if the answer provided is useful, so that you can help others in the community looking for remediation for similar issues


  3. Danny Roy 0 Reputation points
    2023-06-14T12:43:27.92+00:00

    Hi,

    If it can help

    User's image

    User's image

    Thanks

    If I try to reset

    User's image

    Thanks

    Thanks


  4. Danny Roy 0 Reputation points
    2023-06-14T14:01:10.2666667+00:00

    I already try it but I try again just for you :-)
    It will take 30-45 min to run, I get back after with the result

    Thank you Luca

    User's image

    0 comments No comments

  5. Danny Roy 0 Reputation points
    2023-06-14T14:55:38.5966667+00:00

    The result,

    User's image

    User's image


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.