Hi @mrmnrs
UPDATE: I ran my script against centralus and it failed in similar way, please see screenshot below:
Text version of error:
New-AzVirtualNetworkGateway: Long running operation failed with status 'Failed'. Additional Info:'The operation failed due to following errors: 'One or more operations failed'.'
StatusCode: 200
ReasonPhrase: OK
Status: Failed
ErrorCode: OperationFailureErrors
ErrorMessage: The operation failed due to following errors: 'One or more operations failed'.
There hasn't been official announcement that Basic SKU VPN Gateway supports Standard SKU Public IP, so it is possible that it hasn't fully rolled out to all regions or maybe isn't ready for production yet.
I checked Activity Log and didn't find anything helpful in the JSON.
Have you tried adding -Debug to your New-AzVirtualNetworkGateway command? Also, have you checked activity log entries to see if there are any more details to help with troubleshooting?
I had success in westus3 region using below script:
$location = "westus3"
$resourceGroup = "basic-vnet-gateway-group"
$vnetAddressSpace = "10.20.0.0/16"
$gatewaySubnet = "10.20.0.0/27"
New-AzResourceGroup -Name $resourceGroup -Location $location
$subnetConfig = New-AzVirtualNetworkSubnetConfig -Name GatewaySubnet -AddressPrefix $gatewaySubnet
$vngwPIP = New-AzPublicIpAddress -Name myvngw-ip -ResourceGroupName $resourceGroup -Location $location -Sku Standard -AllocationMethod Static -Zone 1,2,3
$vnet = New-AzVirtualNetwork -Name myvngw-vnet -ResourceGroupName $resourceGroup -Location $location -AddressPrefix $vnetAddressSpace -Subnet $subnetConfig
$subnet = Get-AzVirtualNetworkSubnetConfig -Name GatewaySubnet -VirtualNetwork $vnet
$vngwIpConfig = New-AzVirtualNetworkGatewayIpConfig -Name vngwipconfig -SubnetId $subnet.Id -PublicIpAddressId $vngwPIP.Id
New-AzVirtualNetworkGateway -Name myvngw-gw -ResourceGroupName $resourceGroup -Location $location -IpConfigurations $vngwIpConfig -GatewayType Vpn -VpnType RouteBased -GatewaySku Basic
Please click Accept Answer and upvote if the above was helpful.Thanks.
-TP