I am attempting to create an Azure VPN Gateway from an already created Vnet. The Vnet is created and I've got a VM inside the VNET - works great. But now I am trying to setup the P2S gateway as follows
New-AzureRmVirtualNetworkGateway -Name $GWName -ResourceGroupName $RgName ` -Location $Locname -IpConfigurations $ipconf -GatewayType Vpn ` -VpnType RouteBased -EnableBgp $false -GatewaySku Standard ` -VpnClientAddressPool $VPNClientAddressPool -VpnClientRootCertificates $p2srootcert
Sadly I get this response
WARNING: The output object type of this cmdlet will be modified in a future release
New-AzureRmVirtualNetworkGateway : An error occured.
StatusCode: 500
ReasonPhrase: Internal Server Error
OperationID : '6583d352-2ad6-473f-b747-d77f8e3c78f1'
At line:1 char:1
+ New-AzureRmVirtualNetworkGateway -Name $GWName -ResourceGroupName $Rg ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : CloseError: (:) [New-AzureRmVirtualNetworkGateway], NetworkCloudException
Any clues a) to that this means and b) how to fix it
Thomas Lee <DoctorDNS@Gmail.Com>