![](https://it-infrastructure.solutions/content/images/2022/08/image-74.png)
This article has not been completed yet. However, it may already contain helpful Information and therefore it has been published at this stage.
Introduction / Theory:
"Azure Virtual Network is the fundamental building block for your private network in Azure. A virtual network enables many types of Azure resources, such as Azure Virtual Machines (VM), to securely communicate with each other, the internet, and on-premises networks. A virtual network is similar to a traditional network that you'd operate in your own data center. An Azure Virtual Network brings with it extra benefits of Azure's infrastructure such as scale, availability, and isolation."
Microsoft
Example: Azure virtual network
![](https://it-infrastructure.solutions/content/images/2023/10/image-9.png)
Create Virtual Network via Portal:
![](https://it-infrastructure.solutions/content/images/2022/08/image-87.png)
![](https://it-infrastructure.solutions/content/images/2022/08/image-88.png)
![](https://it-infrastructure.solutions/content/images/2022/08/image-89.png)
![](https://it-infrastructure.solutions/content/images/2022/08/image-90.png)
![](https://it-infrastructure.solutions/content/images/2022/08/image-91.png)
![](https://it-infrastructure.solutions/content/images/2022/08/image-92.png)
![](https://it-infrastructure.solutions/content/images/2022/08/image-93.png)
![](https://it-infrastructure.solutions/content/images/2022/08/image-96.png)
![](https://it-infrastructure.solutions/content/images/2022/08/image-95.png)
![](https://it-infrastructure.solutions/content/images/2022/08/image-97.png)
![](https://it-infrastructure.solutions/content/images/2022/08/image-98.png)
Create Virtual Network via PowerShell:
# Ressource Group Creation
$rg = @{
Name = 'rg-avd-test'
Location = 'WestEurope'
}
New-AzResourceGroup @rg
![](https://it-infrastructure.solutions/content/images/2022/08/image-99.png)
# VNet Creation
$vnet = @{
Name = 'avdtestvnet01'
ResourceGroupName = 'rg-avd-test'
Location = 'WestEurope'
AddressPrefix = '10.0.0.0/16'
}
$virtualNetwork = New-AzVirtualNetwork @vnet
![](https://it-infrastructure.solutions/content/images/2022/08/image-100.png)
# Subnet Creation
$subnet = @{
Name = 'default'
VirtualNetwork = $virtualNetwork
AddressPrefix = '10.0.0.0/24'
}
$subnetConfig = Add-AzVirtualNetworkSubnetConfig @subnet
# Write the subnet configuration to the virtual network
$virtualNetwork | Set-AzVirtualNetwork
![](https://it-infrastructure.solutions/content/images/2022/08/image-102.png)
![](https://it-infrastructure.solutions/content/images/2022/08/image-103.png)
Via Azure CLI:
# Ressource Group Creation
az group create \
--name rg-avd-test \
--location westeurope
![](https://it-infrastructure.solutions/content/images/2022/08/image-105.png)
# VNet- and Subnet - Creation
az network vnet create \
--name avdtestvnet01 \
--resource-group rg-avd-test \
--subnet-name default
![](https://it-infrastructure.solutions/content/images/2022/08/image-106.png)
![](https://it-infrastructure.solutions/content/images/2022/08/image-104.png)
References:
Quickstart: Create a virtual network - Azure portal - Azure Virtual Network
In this quickstart, learn how to create a virtual network using the Azure portal.
![](https://docs.microsoft.com/en-us/media/logos/logo-ms-social.png)
Create a virtual network - quickstart - Azure PowerShell - Azure Virtual Network
In this quickstart, you create a virtual network using the Azure portal. A virtual network lets Azure resources communicate with each other and with the internet.
![](https://docs.microsoft.com/en-us/media/logos/logo-ms-social.png)
Create a virtual network - quickstart - Azure CLI - Azure Virtual Network
In this quickstart, learn to create a virtual network using the Azure CLI. A virtual network lets Azure resources communicate with each other and with the internet.
![](https://docs.microsoft.com/en-us/media/logos/logo-ms-social.png)