How to update an Azure virtual network.



This content originally appeared on DEV Community and was authored by UMEOHIA NNAMDI

Azure Virtual Network (VNet) is a fundamental element of Azure’s cloud infrastructure, offering a secure, isolated, and flexible networking environment for your cloud resources. As your infrastructure needs change, you may need to modify your VNet by adding subnets, creating and associating new network security groups.

This article walks you through the steps to update an Azure virtual network using the Azure portal.

Create a new subnet on an existing virtual network (vNet). Steps:

1.Login to Microsoft Azure at https://portal.azure.com.

2.In the Azure portal, search for and select virtual networks.

In the Azure portal, search for and select virtual networks

3.Select the guided-project-vnet virtual network.

Select the guided-project-vnet virtual network

4.In the guided-project-vnet, under settings, select Subnets.

under settings, select Subnets

5.Select +subnet.

Select +subnet

6.For Subnet purpose leave it as Default. Give subnet a name: ftpSubnet. Leave the rest as default and select ADD.

Give subnet a name and select add

Create a network security group. Steps:

1.In the Azure portal, search for and select virtual networks.

search and select virtual networks

2.Select Network security groups. Select + Create.

Select Network security groups

3.Verify the subscription is correct. Select the guided-project-rg as resource group. Enter ftpNSG for the network security group name. Select Review + create.

Subscription, resource group, VN name, review + create

4.Select create.

create

5.Wait for deployment to be completed. Select Go to resource.

Go to resource

Create an inbound security rule. Steps:

1.On your virtual networks section, select Network security groups blade, select your network security group.

network security group

2.Under the settings section, select Inbound security rules blade. Select +Add.

Under settings section, select Inbound security rules blade. Select +Add.

3.Change the Destination port ranges from 8080 to 22. Select TCP for the protocol. Set the name to ftpInbound. Select Add.

Change the Destination port ranges from 8080 to 22. Select TCP for the protocol

Set the name to ftpInbound. Select Add

Associate a network security group to a subnet.

1.In the Azure portal, search for and select virtual networks.

In the Azure portal, search for and select virtual networks

2.On the virtual network section, select virtual networks, Select the guided-project-vnet virtual network.

On the virtual network section, select virtual networks, Select the guided-project-vnet virtual network

3.Under settings section, select Subnets blade. Select the ftpSubnet you created.

Under settings section, select Subnets blade. Select the ftpSubnet you created.

4.On the Edit subnet page, under the Security section heading, update the Network security group field to ftpNSG. Select Save.

ftpNSG.Select Save


This content originally appeared on DEV Community and was authored by UMEOHIA NNAMDI