

Set-AzureRmVirtualNetwork -VirtualNetwork $vnīefore we create VN gateway, we need to create gateway subnet for it. $vn = Get-AzureRmVirtualNetwork -ResourceGroupName REBELVPNRG -Name REBEL-VNETĪdd-AzureRmVirtualNetworkSubnetConfig -Name REBEL-SVR-SUB -VirtualNetwork $vn -AddressPrefix 192.168.100.0/24 Under the virtual network I am going to create a subnet for my servers. In above, REBEL-VNET is the virtual network name. New-AzureRmVirtualNetwork -ResourceGroupName REBELVPNRG -Name REBEL-VNET -AddressPrefix 192.168.0.0/16 -Location "East US" Now we need to create new virtual network. In here REBELVPNRG is RG group name and East US is the location. Then run New-AzureRmResourceGroup -Name REBELVPNRG -Location "East US". Log in to Azure portal as global administratorģ. In this exercise, I like to use separate resource group for virtual network and other components.ġ. So, let’s go ahead and see how we can do that, In this method it will use certificates to do the authentication between end point and azure virtual network. But what if you connecting from remote location such as home? we can use point-to-site method to do that. This VPN connection is initiated in your edge firewall or router level.

In one of my previous article, I explain how we can create site-to-site VPN connection between local network and azure virtual network.
