PROVIDE A SHARED SERVICES HUB VIRTUAL NETWORK WITH ISOLATION AND SEGMENTATION
Published: 2024-07-12 12:13:59


Open a browser and navigate to the Azure portal and login.
To create a Virtual Network, in the search bar at the top of the portal type “Virtual Networks” and select “Virtual Networks” from the results.
In the “Virtual Networks” portal pane, select ““+ Create”.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/jqpjvrrlnmaw3ajs3ya4.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kzjd0czyzc3sw0gkp40w.png)

Fill out all the tabs of the creation process by using the values in the following table:


Resource group:	          RG1
Name:	                 app-vnet
Region:	                 East US
IPv4 address space:      10.1.0.0/16
Subnet name:	         frontend
Subnet address range:    10.1.0.0/24
Subnet name:	         backend
Subnet address range:    10.1.1.0/24
Note: **_Leave all other settings as their defaults. Select “Next” to advance to the next tab, and Create to create the virtual network._**
![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/b7xb9uiemx1dg7wt5yr1.png)


![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ydw3uiip5rrl0vjjm3z3.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/i63k54vazj9hen8g3ol4.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/tpwpj0r3eo60e94dfmy9.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/skspnf8kafiamff93n9s.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/vcedeqdts9x9gwmi332a.png)

Following the same steps as above, create the Azure virtual network Hub-vnet by using the values in the following table:

Resource group:  	RG1
Name:	                Hub-vnet
Region:	                East US
IPv4 address space:	10.0.0.0/16
Subnet name:    	AzureFirewallSubnet
Subnet address range:	10.0.0.0/24

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/60ls4sbhhcx1ih1xz2a9.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/mzlbl0mssc9bnon89vea.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4slgbdlsyxhvr3g9a2n2.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/4btp242cdvngobnbyyzp.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/od2qtnuifmhh6l05rgtb.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/zu0m0ncxuufy9wcetrsn.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/1pg61o08xtdkogr3jl3t.png)

Once the deployment is complete. Navigate back to the portal, in the search bar type “resource groups” and select Resource Groups” from the results. Select on “RG1” in the main pane and comfirm both virtual networks have been deployed.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/5dls1l47h5bier8ty0qg.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/u9k2w6r6qvvr2bft5acj.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/8drxhtgre13vn74atcai.png)

SETUP A PEER RELATIONSHIP BETWEEN THE VIRTUAL NETWORKS:
Setting up a peer relationship between the two virtual networks will allow traffic to flow in both directions between the app-vnet and hub-vnet virtual networks.
In the Portal in the RG1 resource group view. Select on the “app-vnet” virtual network.
On the app-vnet context menu on the left hand side of the portal scroll down and select on peerings
In the app-vnet peerings pane, Select + Add.

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/04m9y76byooh0ew0q004.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/2v6vmi2laamjuuyp1hn9.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/32whe8u4i50us9o3j6od.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/cjt2hpme1sxsma37w2em.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/9qd3k0a1g9bndwvqiyo9.png)

Fill out the form using the values in the following table:


This virtual network Peering link name: 	app-vnet-to-hub
Remote virtual network Peering link name:	hub-to-app-vnet
Virtual network:                        	hub-vnet

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/ni2j1a5ned63bu0140z7.png)

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/xmkl798fjdt2txc8h0wb.png)

**_Note: Leave all other settings as their defaults. Select “Add” to create the virtual network peering._**

Once the process completes, and after the configuration updates. Validate that the Peering status is set to Connected. (you may have to refresh the page to see the updated status).

![Image description](https://dev-to-uploads.s3.amazonaws.com/uploads/articles/kvldmy6esn7otc4syd6x.png)