Cannot create a Virtual Network Gateway

Page, Jeremy - SU ()-SU 6 Reputation points
2022-09-16T20:03:00.6+00:00

I deleted my Virtual Network Gateway so I could recreate it with a new CA. When I go to deploy the new VNG it fails with no useful information (an intermittent error has occurred). It's not that intermittent since it's happened 10/10 times I've tried it today.

I am not doing anything unusual, it happens if I retry using an existing Public IP or delete the old Public IP and recreate with the Gateway. How do I troubleshoot this? There is zero useful information.

I am creating it using the same Subscription/Virtual Network. This is very frustrating and I have no information provided to assist in resolving.

{  
    "$schema": "http://schema.management.azure.com/schemas/2015-01-01/deploymentTemplate.json#",  
    "contentVersion": "1.0.0.0",  
    "parameters": {  
        "name": {  
            "type": "string"  
        },  
        "location": {  
            "type": "string"  
        },  
        "gatewayType": {  
            "type": "string",  
            "defaultValue": "Vpn",  
            "allowedValues": [  
                "Vpn",  
                "ExpressRoute"  
            ]  
        },  
        "sku": {  
            "type": "string"  
        },  
        "vpnGatewayGeneration": {  
            "type": "string"  
        },  
        "vpnType": {  
            "type": "string",  
            "defaultValue": "RouteBased",  
            "allowedValues": [  
                "RouteBased",  
                "PolicyBased"  
            ]  
        },  
        "subnetId": {  
            "type": "string"  
        },  
        "publicIpAddressId": {  
            "type": "string"  
        }  
    },  
    "resources": [  
        {  
            "apiVersion": "2020-11-01",  
            "name": "[parameters('name')]",  
            "type": "Microsoft.Network/virtualNetworkGateways",  
            "location": "[parameters('location')]",  
            "dependsOn": [],  
            "tags": {  
                "environment": "test"  
            },  
            "properties": {  
                "gatewayType": "[parameters('gatewayType')]",  
                "ipConfigurations": [  
                    {  
                        "name": "default",  
                        "properties": {  
                            "privateIPAllocationMethod": "Dynamic",  
                            "subnet": {  
                                "id": "[parameters('subnetId')]"  
                            },  
                            "publicIpAddress": {  
                                "id": "[parameters('publicIpAddressId')]"  
                            }  
                        }  
                    }  
                ],  
                "vpnType": "[parameters('vpnType')]",  
                "vpnGatewayGeneration": "[parameters('vpnGatewayGeneration')]",  
                "sku": {  
                    "name": "[parameters('sku')]",  
                    "tier": "[parameters('sku')]"  
                }  
            }  
        }  
    ]  
}  
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,514 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Piotr Podlawski 86 Reputation points
    2022-09-16T20:05:18.023+00:00

    @Page, Jeremy - SU ()-SU Please check if Microsoft.Web is registrated on subscription.


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.