This content originally appeared on DEV Community and was authored by stephen anosike
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”
Click on "create new" to create a "resource group", give your resource group a name "RG1" and click "OK" to create the resource group.
To create the "Virtual Network", select the "RG1" in the resource group section, give your virtual network a name "app-vnet" and select your preferred region, in our case (US) central US.
- To enter the IP Address range for the virtual virtual network, select "ip address" on the top, then input the ip address range in the space allocated.
- To create the first subnet, click on "default" enter the required information and click on "save".
- To create the second subnet, click on "Add a subnet" enter the required information and click on "add". Then, click on review and create and finally, click on create.
- To create the second virtual network, fill the required fields
- To create the subnet for the second virtual network, click on "ip address", click on "default" and fill the required fields and click on "add".
- After confirming that the subnet have been created, click on "review and create" and then click on "create".
- 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.
_## *Setup a peer relationship between the virtual networks
*
- In the Portal, in the RG1 resource group view. Select on the “app-vnet” virtual network. On the left hand side, select "setting" and on drop down click "peerings"
- In the app-vnet peerings pane, Select "+ Add" and fill the required fields, and click on "Add".
- This is to validate that the Peering status is set to Connected.
This content originally appeared on DEV Community and was authored by stephen anosike
stephen anosike | Sciencx (2024-07-12T18:00:02+00:00) Create hub and spoke virtual networks and subnets. Retrieved from https://www.scien.cx/2024/07/12/create-hub-and-spoke-virtual-networks-and-subnets/
Please log in to upload a file.
There are no updates yet.
Click the Upload button above to add an update.