Azure vnet contd
- In Azure subnet is scoped to Region
- In the same subnet as shown above we can have vms from different zones.
-
Lets create a linux vm and connect it the network created in last session
- The componets with relevance to network created are
- Network security Group
- Network Interface
- Public Ip Address
- Connect to the linux machine from your system using public ip
ssh username@publicip
sudo apt install net-tools
ifconfig
* Lets have a look at public ip address created
* Lets have a look at network interface
* Lets have a look at network security group
Scenario – 1
- Create a virtual network in any region (/22) with 3 subnets
- web (/24)
- app (/24)
- db (/24)
- Create a linux vm with public ip address in web subnet
- create a linux vm without public ip address in app subnet
- Lets try to connect to the app server from our laptop
- direct connection is not possible as app server doesnot have public ip
- so lets connect to web server and from webserver lets connect to app server as communication with in vnet is enabled by default (private connections)