DEV Community

Cover image for How to Update an Azure virtual network
Abiodun Omotunde
Abiodun Omotunde

Posted on

How to Update an Azure virtual network

An Azure Virtual Network (VNet) is your private network in the cloud. It allows secure communication between Azure resources, the internet, and on-premises systems. You can customize it with subnets, define access using network security groups, and control traffic through routing and firewall rules. VNets are the backbone of any secure, scalable infrastructure on Azure.

Here we will be learning about how to update an Azure Virtual Machine.

Step 1. Login to Microsoft Azure at https://portal.azure.com
Step 2. From the Azure portal home page, in the search box, enter virtual networks.
Step 3. Select virtual networks under services.
Step 4. Select the virtual network you created.

vn

Step 5. From the guided-project-vnet blade, under settings, select Subnets

select subnet

Step 6. To add a subnet, select + Subnet.

add subnet

Step 7. For Subnet purpose leave it as Default.
Step 8. For Name enter: ftpSubnet.
Step 9. Leave the rest of the settings alone and select Add

ftpsubnet

add

Step 10. Select Home to return to the Azure portal home page

Congratulations you’ve completed the creation of a subnet. This subnet is only going to be used for SFTP traffic. To increase security, you need to configure a Network security group to restrict which ports are allowed on the subnet

Create a network security group

  1. From the Azure portal home page, in the search box, enter virtual networks.
  2. Select virtual networks under services.
  3. Select Network security groups.

Security groups

  1. Select + Create.

create

  1. Verify the subscription is correct.
  2. Select the resource group you created.
  3. Enter ftpNSG for the network security group name.
  4. Select Review + create.

create

  1. Once the validation is complete, select Create.
  2. Wait for the screen to refresh and display Your deployment is complete.
  3. Select Go to resource.

Create an inbound security rule

  1. Under settings, select Inbound security rules.
  2. Select + Add.
  3. Change the Destination port ranges from 8080 to 22.
  4. Select TCP for the protocol.
  5. Set the name to _ftpInbound._
  6. Select Add.
  7. Select Home to return to the Azure portal home page.

inbound rule

Congratulations – you’ve created a new Network security group and configured rules to allow inbound FTP traffic. Now, you’ll need to associate the new network security group with the ftpSubnet.

Associate a network security group to a subnet

  1. From the Azure portal home page, in the search box, enter virtual networks.
  2. Select virtual networks under services.
  3. Select the virtual network you created.
  4. Under settings, select Subnets.
  5. Select the ftpSubnet you created.
  6. On the Edit subnet page, under the Security section heading, update the Network security group field to ftpNSG.
  7. Select Save.

subnet created

If you have followed up to this point, well-done! you have just learnt how to Update an Azure virtual network.
See you on the next article, kindly like, comment and share!

Top comments (0)