@Page, Jeremy - SU ()-SU Please check if Microsoft.Web is registrated on subscription.
Cannot create a Virtual Network Gateway
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')]"
}
}
}
]
}