How To Create A Virtual Network And A Bastion Host

In this article, we’ll learn to create a virtual network and bastion host on Azure. We’ll learn what virtual network is and also about Bastion Host. After that, the process to create the Virtual Network and Bastion host is walked through in detail.

What is Virtual Network?

Virtual Network can be understood as the network where software and wireless technology plays a significant role in connecting the range of devices from servers, data centers to virtual machines. Virtual Network has a plethora of benefits and the network reach can be expanded as per the need to attain peak efficiency. With a virtual network, location becomes obsolete. The devices and virtual machines can be connected using the software anywhere in the world. This provides a huge advantage to create the most efficient networking structure enabling the connection of data centers to host applications without the need for any physical changes in connection.

What is Azure Bastion? 

Azure Bastion is a service that enables developers to connect to the virtual machine through Azure Portal using a web browser. The Secure Shell Protocol (SSH) and Remote Desktop Protocol (RDP) can be accessed seamlessly with high security to virtual machines (VM) without using public IP addresses mitigating the possibility of any exposure.

Let us learn to create a Virtual Network and Bastion Host today. With the Azure Subscription at hand, it is quite easy to create them which will enable numerous capabilities such as connecting web apps through private endpoint where Virtual Network and Bastion Host plays an important role. To learn to create Virtual Machine (VM) in Azure, read the previous article, 

Step 1 

Firstly, sign in to the Azure Portal. You’ll land on this page once you sign up.

How to Create a Virtual Network and a Bastion Host

Step 2 

Click on Create a Resource.

How to Create a Virtual Network and a Bastion Host

Step 3 

Now, choose Networking in the Categories section on the left of the screen.

Step 4 

Type in Virtual Network on the search bar.

Step 5 

Click on Create -> Virtual Network,

How to Create a Virtual Network and a Bastion Host

Step 6 

Under the Basics tab, fill in the details for the Subscription and Resource Group you are using. Set the Region to US West with Instance Name: my_VNet.

Step 7

Switch to IP Addresses, either from the button below or right on the header.

Step 8 

Set the IPv4 address space to 

Step 9 

Click on Add Subnet and fill in the details with Subnet Name as mySubnet and Subnet address range set to

Now, make sure you select the Subnet.

Step 10 

Under the Security, Set the Bastion name as myBastionHost and the Address space for 

How to Create a Virtual Network and a Bastion Host

Step 11

For the Public IP address, click on Create new. 

Set the Name to myBastionIP.

Now, the New IP address has been set.

Step 12

Click on Review + Create.

The validation will run and the green bar will pop once validated.

How to Create a Virtual Network and a Bastion Host

Step 13 

Click on Create.

The deployment will be submitted with a pop-up in the notification. 

Once deployed, the VNet and Bastion Host will be seen in the Resources.

How to Create a Virtual Network and a Bastion Host


In this article, we learned about Virtual Networks and Bastion Host. Later, we also learned to create Virtual Network and Bastion Host in Microsoft Azure. These will be important when we plan to host a web app through private networks.