VNET

A virtual network is nothing but, like On-premises network which we use switches and routers to communicate with servers and clients as same as Azure VNet is also used for communicating with azure resources. (Virtual Machine, Databases, etc.)

How the resources communicate within the VNet

Subnet
Under the VNet, we must understand what Subnet is and how it works.
Subnetting is the process of dividing a network into small networks,
For Example,
There are two classrooms in a school. Consider a classroom as a subnet.
Class A leader wants to get a duster from Class B, but the class was enclosed, he can go by open door.
Here the Door is a Network security group, it will act as a firewall for subnets as well as resources in the subnet.

What should we do to communicate between two different VNet’s inside azure?

VNet Peering
For Example, let me explain based on a scenario,
There are two schools, School A (VNet A) and School B (VNet B).
School A students want to participate in a sports event which conducted by School B, the school A must get permission and register in government CEO Office to join in this event. After getting the permission they can join the event.
As same in our azure, we want to communicate two different VNet’s A and B in azure, we must configure VNet Peering.
With the help of VNet Peering, our azure resources can communicate with the private IP address.

How to communicate Azure resources with On-Premises

VPN Gateway
Express Route
Thanks for reading this article, I hope you understood the above topics.
If you like this please like, comment and share.