# Let’s Create Azure Virtual Network

### **What is Azure Virtual Network?**

[Azure Virtual Netwo](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)[rk](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html) is a clo[ud representation of](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html) an on-premises network, enabling isolation and management of virtual private networks in Azure, facilitating connections with other Azure networks or on-premises infrastructure for hybrid solutions

### **How Does Virtual Networking Wo**[**rk?**](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)

[Virtual networki](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)ng in Azure co[nnects resources with](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)in the cloud environment, providing isolated networks with features like private IP address space, security groups, and routing tables, akin to on-premises networks.

**How Virtual Network Works in A**[**zure:**](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)

1. [**Virtual Netw**](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)**orks:** Virtual netw[ork is a logically is](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)olated network where we maintain our virtual machines and other resources.
    
2. **Subnets:** Subnets are part of a [virtual network wher](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)e we can group all of them based on our requirements like functionality, security, and based on other requirements. With the subnets, we can control the incoming traffic to our application.
    
3. **Routing:** Routing is used to di[rect the traffic betw](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)een virtual machines and resources placed in a virtual network.
    
4. **VPN and Express Route:** We conn[ect to a virtual netw](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)ork in Azure from on-premises in two ways by using VPN(Virtual Private Network) for secure connection or we can use Express route for dedicated private connection.
    

### **Examples of Virtual Networking**

* [Azure Load Balanc](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)er evenly spreads traffic across multiple virtual machines in a network and can collaborate with Azure Application Gateway to manage traffic for various apps or microservices.
    
* Azure VPN Gateway creates a se[cure connection betwe](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)en your on-premises network and an Azure Virtual Network, forming a protected tunnel using the IPSec protocol.
    
* Azure ExpressRoute enables a d[edicated, private con](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)nection between on-premises infrastructure and Azure virtual networks, ensuring faster and more secure routing of public traffic.
    
* Azure Firewall provides networ[k security for resour](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)ces within an Azure Virtual Network by filtering and examining traffic based on application and network-level policies.
    

### **Benefits of Virtual Networks**:

[Virtual networks off](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)er a range [of benefits across v](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)arious scenarios:

**Establishing a Dedicated Priva**[**te Cloud Environment**:](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html) This approach suits situations where a hybrid setup isn’t needed. By setting up a virtual network, all components within it, like virtual machines and services, can securely communicate within the cloud. Additionally, it allows for configuring endpoint connections for services and virtual machines requiring internet access.

**Enhancing Data Center Capacity** [**with Security**: Utili](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)zing site-to-site virtual private networks employing IPSEC ensures a secure connection between the corporate virtual private network gateway and Azure. This enables the safe expansion of data center capabilities.

**Facilitating Cross-Premises Co**[**nnectivity**: Virtual n](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)etworks play a pivotal role in securely linking cloud-based applications to on-premises systems, including Unix systems and mainframes. This flexibility supports a variety of hybrid or cross-premises solutions.

### **Elements of Azure Virtual Netw**[**ork**](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)

1. [**Subnets:** Subne](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)ts can be used t[o split up a virtual](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html) network into smaller, simpler networks. It is possible to designate each subnet to a different security zone and control traffic between subnets using network security groups.
    
2. **Network Security Groups:** Netwo[rk traffic between su](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)bnets or between virtual machines (VMs) inside a subnet is filtered using NSGs. The source or destination IP address, port number, or protocol can all be used to define rules in an NSG that allow or refuse communication.
    
3. **Virtual Network Interface Card**[**s:** Virtual Network In](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)terface Cards will help our VMs to other resources via the internet. Each VM can have more than one NIC.
    
4. **Virtual Private Network Gatewa**[**y:** Virtual Private Ne](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)twork Gateway (VPNG) technology can link on-premises resources to cloud resources.
    
5. **Azure Application Gateway:** You [may manage and scale](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html) web applications using the load balancer for web traffic known as Azure Application Gateway. It offers SSL offloading, URL-based routing, cookie-based session affinity, and web application firewall (WAF) features.
    

### **Creating Virtual Networks**

You [can make new virtual](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html) netwo[rks anytime or alongs](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)ide virtual machine creation, setting the address space and at least one subnet. The default limit is 50 virtual networks per region per subscription, expandable up to 500 by contacting Azure support.

Step 1. Login to your Azure Po[rtal. Click on “Creat](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)e a resource”

![](https://miro.medium.com/v2/resize:fit:945/1*Ko1JlfreFspemHoNCWgXGw.png align="left")

Step 2. Search Virtual Network [and click on create.](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)

![](https://miro.medium.com/v2/resize:fit:945/1*4yJylGCJ2R44UyhdfQ0X_g.png align="left")

Step 3. In the Basics fill out [the below as per you](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)r data.

![](https://miro.medium.com/v2/resize:fit:945/1*SQGjwggKMxYFQrvFu_bYpg.png align="left")

Step 4. In the security sectio[n choose the security](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html) settings you wish for your virtual network.

![](https://miro.medium.com/v2/resize:fit:811/1*8vIusPZV8taH0sZLB-4esg.png align="left")

Step 5. Click on **the Next: IP** [**Addresses** button. In](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html) the IP Addresses tab enter the following details

* **IPv4 address space**: Enter the [IPV4 address range in](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html) CIDR notation (e.g. 192.208.9.0/32).
    
* **Subnet**: Create a subnet for yo[ur virtual network. T](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)here should be at least one subnet.
    

![](https://miro.medium.com/v2/resize:fit:945/1*wplDv4WAVyR5e-UZKogZrw.png align="left")

Step 6. Click on review+create[.](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)

![](https://miro.medium.com/v2/resize:fit:945/1*Lz7TDWeHUhSvm-H2x5shsQ.png align="left")

[Step 7. Click on](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html) **create** option [to create your virtu](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html)al network.

![](https://miro.medium.com/v2/resize:fit:945/1*UM6GnUzSxTXd2S4AzknnkA.png align="left")

Creating an Azure virtual netw[ork is essential for](https://riovtech.blogspot.com/2024/03/lets-create-azure-virtualnetwork.html) building a private network in Azure, offering scalability, isolation, and availability. Azure IP addressing ensures resource accessibility, with private IPs for internal communication and public IPs for direct internet access to Azure resources.
