How To Create A Site-To-Site VPN In Azure With PowerShell

In regards to network security, there are very few things you can do that would be more secure than to create a site-to-site (S2S) Virtual Private Network (VPN). As more systems move to the cloud, S2S VPN’s are becoming increasingly popular to secure your data in transit. In this snip, Nick will demonstrate how to Create and test an Azure S2S VPN using a Basic VPN gateway. We’ll use commands like New-AzureRmLocalNetworkGateway, New-AzureRmPublicIpAddress, New-AzureRmVirtualNetworkGateway, New-AzureRmVirtualNetworkGatewayConnection, Add-AzureRmVirtualNetworkSubnetConfig to create the VPN. Then use Get-AzureRmVirtualNetwork and Get-AzureRmVirtualNetworkSubnetConfig, Get-AzureRmVirtualNetworkGateway , Get-AzureRmLocalNetworkGateway to retrieve the S2S configuration. In this video we will use a Windows 2016 RRAS server as the other vpn end-point, although the code can be used for any Azure compatible device.

Prerequisites Include: Windows Server 2012 or Server 2016 with RRAS installed and an interface already configured, or an Azure compatible VPN device. An Azure account The Azure Powershell Module installed