A few weeks ago I started with the step-by-step description of how to simulate a connection between our on-premises network and the Azure Cloud. To do this, we configure a group of resources, in which we deploy a VNet. Now using that VNet we are going to deploy a Subnet that will be the one on which we will configure our Azure VPN Gateway.
NOTE :
Mention that for now we are creating Azure resources.
![](https://labs.sogeti.com/wp-content/uploads/sites/2/2021/09/2.png)
To do this, we return to our Visual Code and include a new file, in this case we will give it the name of subnet-creation.sh, which clearly indicates what we want
![](https://labs.sogeti.com/wp-content/uploads/sites/2/2021/09/3-1-1024x543.jpg)
We carry out the commit and the following PR with which now we would be in a position to add a new task to our Release in Azure DevOps.
![](https://labs.sogeti.com/wp-content/uploads/sites/2/2021/09/4-1024x772.png)
Now we speed up a bit and we are going to include the last component of our part of Azure, which would be the Local Network Gateway. Same process, we create a new file to include the Azure CLI script with which to deploy the resource.
![](https://labs.sogeti.com/wp-content/uploads/sites/2/2021/09/5-1024x549.png)
All that remains is to create a new task in Azure DevOps to complete this first part.
![](https://labs.sogeti.com/wp-content/uploads/sites/2/2021/09/6-1024x774.png)
We repeat the same process to create, in this second case, the resources that simulate our on-premises network. So we will have three new files and their respective tasks in Azure DevOps.
![](https://labs.sogeti.com/wp-content/uploads/sites/2/2021/09/7-1-1024x391.jpg)
![](https://labs.sogeti.com/wp-content/uploads/sites/2/2021/09/8-1-1024x735.jpg)
All that remains is to run the Release and we will have the following resources created in the cloud.
![](https://labs.sogeti.com/wp-content/uploads/sites/2/2021/09/9.png)
Next, we complete a file for each network, where we will configure a VPN Gateway for each one.
In the case of the Azure network
![](https://labs.sogeti.com/wp-content/uploads/sites/2/2021/09/10-2.jpg)
In the case of the simulation of our on-premise network
![](https://labs.sogeti.com/wp-content/uploads/sites/2/2021/09/11.jpg)
In Azure DevOps we should have something like this
![](https://labs.sogeti.com/wp-content/uploads/sites/2/2021/09/12-1024x773.png)
Once we create and execute the Release, our resource group is varied like this:
![](https://labs.sogeti.com/wp-content/uploads/sites/2/2021/09/13-1024x773.png)
All that remains is to update the LNG IPs and create the connections to finally have an architecture like the one drawn just below.
![](https://labs.sogeti.com/wp-content/uploads/sites/2/2021/09/14.png)
In the next post, I will also describe the main characteristics of the Azure VPN Gateway and the reason for architectures like the one obtained during this exercise. See ya