Hi all,
I've used existing templates to create one that suits my needs and create a Vnet with a Site2Site connection.
I was wondering if I can use the gateway created by that template and add a point to site connection to the same network through the same gateway?
My Site2Site script calls the VirtualNetworkGateways API in this manner:
{"apiVersion": "[variables('api-version')]","type": "Microsoft.Network/virtualNetworkGateways","name": "[parameters('gatewayName')]","location": "[resourceGroup().location]","dependsOn": ["[concat('Microsoft.Network/publicIPAddresses/', parameters('gatewayPublicIPName'))]","[concat('Microsoft.Network/virtualNetworks/', parameters('virtualNetworkName'))]" ],"properties": {"ipConfigurations": [ {"properties": {"privateIPAllocationMethod": "Dynamic","subnet": {"id": "[variables('gatewaySubnetRef')]" },"publicIPAddress": {"id": "[resourceId('Microsoft.Network/publicIPAddresses',parameters('gatewayPublicIPName'))]" } },"name": "vnetGatewayConfig" } ],"gatewayType": "Vpn","vpnType": "[parameters('vpnType')]","enableBgp": "false" } },However, after comparing it to a point 2 site script, I've changed it to the following:
{"apiVersion": "[variables('api-version')]","type": "Microsoft.Network/virtualNetworkGateways","name": "[parameters('gatewayName')]","location": "[resourceGroup().location]","dependsOn": ["[concat('Microsoft.Network/publicIPAddresses/', parameters('gatewayPublicIPName'))]","[concat('Microsoft.Network/virtualNetworks/', parameters('virtualNetworkName'))]" ],"properties": {"ipConfigurations": [ {"properties": {"privateIPAllocationMethod": "Dynamic","subnet": {"id": "[variables('gatewaySubnetRef')]" },"publicIPAddress": {"id": "[resourceId('Microsoft.Network/publicIPAddresses',parameters('gatewayPublicIPName'))]" } },"name": "vnetGatewayConfig" } ],"sku": {"name": "[parameters('gatewaySku')]","tier": "[parameters('gatewaySku')]" },"gatewayType": "Vpn","vpnType": "[parameters('vpnType')]","enableBgp": "false","vpnClientConfiguration":{"vpnClientAddressPool":{"addressPrefixes":["[parameters('vpnClientAddressPoolPrefix')]" ] },"vpnClientRootCertificates":[ {"name": "[parameters('clientRootCertName')]","properties":{"PublicCertData": "[parameters('clientRootCertData')]" } } ],"vpnClientRevokedCertificates":[ {"name": "[parameters('revokedCertName')]","properties":{"Thumbprint": "[parameters('revokedCertThumbprint')]" } } ] } } },
I'm fairly new to this. Can this even be done or am I totally off here?
Thanks,
Yaniv.