Hello @Ali Seçkin Başiplikçi ,
Welcome to Microsoft Q&A Platform. Thank you for reaching out & hope you are doing well.
I understand that you are unable to delete your Azure VPN gateway as it is "Failed" provisioning state.
You are unable to delete the VPN gateway as it is in failed state. To delete it, we need to recover it first.
I would request you to try the below provided steps:
- Open a web browser and navigate to https://resources.azure.com
- Log-in to the appropriate Azure account
- In the blade on the left side of the browser, expand subscriptions, then expand the desired subscription name
- In the blade on the left side of the browser, expand resource groups
- Under resource groups, expand the proper Resource Group Name
- Under the Resource Group, expand providers
- Under providers, expand Microsoft.Network
- 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.
- Then click on Edit but do not make any changes.
- Finally click on PUT.
- This should help the VPN gateway to 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 it doesn't help and the gateway still shows as Failed:
- Select the Actions(POST, DELETE) tab on the VPN gateway within the resource explorer(https://resources.azure.com) and click on Delete.
- And confirm if the gateway is deleted.
If you are unable to recover/delete the gateway, we would need to open a support case to get it removed from the backend. So, if you have a support plan, I request you file a support ticket, else please do let us know, we will try and help you get a one-time free technical support.
Kindly let us know if the above helps or you need further assistance on this issue.
----------------------------------------------------------------------------------------------------------------
Please "Accept the answer" if the information helped you. This will help us and others in the community as well.