Azure VNet Peering
- To establish private connectivity between two vnets of azure (irrespective of subscriptions and accounts)
- It is widely used for the Networks across region for active/active and active/passive setup

- Create a peering connection between two vnets in different regions



- Now lets login into the vm with public ip address

- Now lets try to connect to the vm with private ip in other vnet. The connectity fails as there is no connection.
- NOw lets establish peering connection between vnet 1 and vnet2







- Now try to login from vm in vnet1 to vm in vnet2 using private ip

- faq’s on vnet peering Refer Here
Endpoints in Azure
- Certain services such as Azure SQL, Storage Accounts will not be part of our virtual networks, Ideally only way to access them is to use public ip.
- Azure has a concept of private endpoint, where a private connectivity between some subnet in your vnet to the Azure service is created.
- Refer Here for different services in Azure
- A Network interface with valid ip with in your subnets cidr range will be allocated and then we can connect to the azure service privately using the private ip/dns name
Exercise: Install and Configure Azure CLI and Powershell
- Refer Here for installing azure CLI
az login
az group list --output table
- Refer Here for installing Azure CLI
Connect-AzAccount
Get-AzResourceGroup
- Refer Here for the video demonstration of the installation.
