- Amazon EC2 on-demand Capacity Reservations: A step-by-step guide - Thu, Oct 7 2021
- Delete the Amazon Machine Image (AMI) and its associated snapshots - Tue, Oct 5 2021
- AWS Cost Anomaly Detection: A step-by-step guide - Thu, Sep 9 2021
Basically, site-to-site VPN aims to extend your on-premises environment to Azure when you want to follow the hybrid cloud model, where you have some applications running on premises and some applications running on Azure. Also, you might plan to build your disaster recovery site on Azure, and in this scenario, you have to build a site-to-site VPN connection with Azure.
Create a virtual network ^
First off, you need to have a virtual network dedicated to the workloads and applications that would communicate with the on-premises environment. To build your virtual network, you have to follow the next steps:
- Navigate to Azure Portal, open the Virtual Networks blade, and click Add.
- This will take you to a new blade that needs the following fields:
- Name: The name of the virtual network.
- Address space: The virtual network's address range in classless inter-domain routing (CIDR) notation.
- Subscription: The subscription for charging the virtual network usage.
- Resource group: The resource group in which the virtual network will exist.
- Location: The location for building the virtual network.
- Subnet name: The name of the first subnet in the network.
- Address range: The address range of the subnet.
- Click Create. After a short time this will create the virtual network.
Configure virtual network subnets ^
As you have seen in the virtual network creation, I've configured the first subnet in the virtual network. However, we need to add a gateway subnet to use for the virtual network gateway. Therefore, you will have to navigate to the virtual network already created. Under Settings, click on Subnets.
Subscribe to 4sysops newsletter!
- Click +Gateway subnet to add a gateway subnet.
- This will take you to a new blade where you have to specify the address range of the gateway subnet, and then click OK
- Clicking on OK will create and associate the gateway subnet to the virtual network.
In my next post, we will configure the Azure VPN and the local VPN.