Share via

ResourceDeploymentFailure deploying Virtual Network Gateway

Marcin van de Ven 110 Reputation points
2023-12-12T11:22:23.35+00:00

I am trying to deploy a Virtual Netwerk Gateway on the West-Europe region. However the operation fails. The operation gives the following error code:

{
  "code": "VmssGatewayDeploymentFailed",
  "message": "The gateway deployment operation failed due to an intermittent error. Please try again.",
  "details": []
}

The error notification doesn't give more context, except for pointing at the deployment resources:

{
  "code": "DeploymentFailed",
  "target": "/subscriptions/<subscriptionID>/resourceGroups/<resourceGroupID>/providers/Microsoft.Resources/deployments/Microsoft.VirtualNetworkGateway-20231212120304",
  "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",
  "details": [
    {
      "code": "ResourceDeploymentFailure",
      "target": "/subscriptions/<subscriptionID>/resourceGroups/<resourceGroupID>/providers/Microsoft.Network/virtualNetworkGateways/<gatewayName>",
      "message": "The resource write operation failed to complete successfully, because it reached terminal provisioning state 'Failed'."
    }
  ]
}

It only states: "reached terminal provisioning state 'Failed'." Unfortunately this does not give any context at all why it reached this state.

The Virtual Gateway does appear on the resource list with a "failed" indication above the toolbars. Going into the activity log I manage to find that only the "provisioningState" of the "ipConfigurations" is changed from "updating" to "failed".

Deploying the Virtual Network Gateway on another Virtual Network in the Central West Germany region does seem to work. Searching on the internet only gives a GitHub-issue from 2022 mentioning this is an internal server error at the specific Azure region. However, the West Europe region seems to be completely healthy when looking into the status pages and health dashboards.

How can I solve this error?

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.

{count} vote

1 answer

Sort by: Most helpful
  1. Chuck Roden 0 Reputation points
    2026-02-16T18:03:24.43+00:00

    I am getting this when using the portal

    {

    "code": "DeploymentFailed",

    "target": "/subscriptions/0110ecd5-a1a1-4913-a99e-c845b99a6a19/resourceGroups/VirtualNetworksRG/providers/Microsoft.Resources/deployments/test-1771264570727",

    "message": "At least one resource deployment operation failed. Please list deployment operations for details. Please see https://aka.ms/arm-deployment-operations for usage details.",

    "details": [

    {
    
      "code": "BadRequest",
    
      "message": "<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01//EN\"\"http://www.w3.org/TR/html4/strict.dtd\">\r\n<HTML><HEAD><TITLE>Bad Request</TITLE>\r\n<META HTTP-EQUIV=\"Content-Type\" Content=\"text/html; charset=us-ascii\"></HEAD>\r\n<BODY><h2>Bad Request - Request Too Long</h2>\r\n<hr><p>HTTP Error 400. The size of the request headers is too long.</p>\r\n</BODY></HTML>\r\n"
    
    }
    

    ]

    }

    0 comments No comments

Your answer

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