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

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.

Important

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.

Scenario

To better illustrate how to create a VNet and subnets, this document will use the scenario below.

VNet scenario

In this scenario you will create a VNet named TestVNet with a reserved CIDR block of 192.168.0.0./16. Your VNet will contain the following subnets:

  • FrontEnd, using 192.168.1.0/24 as its CIDR block.
  • BackEnd, using 192.168.2.0/24 as its CIDR block.

How to create a classic VNet in the Azure portal

To create a classic VNet based on the scenario above, follow the steps below.

  1. From a browser, navigate to http://portal.azure.com and, if necessary, sign in with your Azure account.
  2. Click NEW > Networking > Virtual network, notice that the Select a deployment model list already shows Classic, and then click Create, as seen in the figure below.

    Create VNet in Azure portal

  3. On the Virtual network blade, 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 figure below shows the CIDR block settings for our scenario.

    Address space blade

  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 figure below 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 blade

  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 figure below.

    Create VNet in portal

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

    Create VNet in portal

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

    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 figure below shows the settings for our current scenario.

    Create VNet in Azure portal