Share via

Create a virtual network (classic) by using the Azure portal


Classic Virtual Network is now deprecated for new customers and will be retired on August 31st, 2024 for all customers. New deployments should use the new Azure Resource Manager based deployment model Azure Resource Manager based Virtual Network

An Azure virtual network (VNet) is a representation of your own network in the cloud. You can control your Azure network settings and define DHCP address blocks, DNS settings, security policies, and routing. You can also further segment your VNet into subnets and deploy Azure IaaS virtual machines (VMs) and PaaS role instances, in the same way you can deploy physical and virtual machines to your on-premises datacenter. In essence, you can expand your network to Azure, bringing your own IP address blocks. Read the virtual network overview if you are not familiar with VNets.


Before you work with Azure resources, it's important to understand that Azure currently has two deployment models: Azure Resource Manager and classic. Make sure you understand deployment models and tools before you work with any Azure resource. You can view the documentation for different tools by clicking the tabs at the top of this article.

This document covers creating a VNet by using the classic deployment model. You can also create a virtual network in the Resource Manager deployment model by using the Azure portal.


To illustrate how to create a VNet and subnets, this document uses the following scenario:

VNet scenario

In this scenario you create a VNet named TestVNet, with a reserved CIDR block of The VNet contains the following subnets:

  • FrontEnd, using as its CIDR block.
  • BackEnd, using as its CIDR block.

How to create a classic VNet in the Azure portal

To create a classic VNet based on the preceding scenario, follow these steps.

  1. From a browser, navigate to and, if necessary, sign in with your Azure account.

  2. Click Create a resource > Networking > Virtual network. Notice that the Select a deployment model list already shows Classic. 3. Click Create as shown in the following figure.

    Create VNet in Azure portal

  3. On the Virtual network pane, type the Name of the VNet, and then click Address space. Configure your address space settings for the VNet and its first subnet, then click OK. The following figure shows the CIDR block settings for our scenario.

    Address space pane

  4. Click Resource Group and select a resource group to add the VNet to, or click Create new resource group to add the VNet to a new resource group. The following figure shows the resource group settings for a new resource group called TestRG. For more information about resource groups, visit Azure Resource Manager Overview.

    Create resource group pane

  5. If necessary, change the Subscription and Location settings for your VNet.

  6. If you do not want to see the VNet as a tile in the Startboard, disable Pin to Startboard.

  7. Click Create and notice the tile named Creating Virtual network as shown in the following figure.

    Create VNet in portal

  8. Wait for the VNet to be created, and when you see the tile, click it to add more subnets.

    Create VNet in portal

  9. You should see the Configuration for your VNet as shown.

    Create VNet in portal

  10. Click Subnets > Add, then type a Name and specify an Address range (CIDR block) for your subnet, and then click OK. The following figure shows the settings for our current scenario.

    Create VNet in Azure portal