Creating a virtual network with PowerShell
PowerShell is a command-line shell and scripting language based on .NET Framework. It's often used by system administrators to automate tasks and manage operating systems. Azure PowerShell Az
is a PowerShell module that allows us to automate and manage Azure resources. Az
is also very often used to automate deployment tasks and can also be used to deploy a new Azure virtual network.
Getting ready
Before we start, we need to make sure that we have the latest Az
modules installed. To install Az
modules, we need to run this command in the PowerShell console:
Install-Module -Name Az -AllowClobber -Scope CurrentUser
For more information, you can visit https://docs.microsoft.com/powershell/azure/install-az-ps?view=azps-4.5.0.
Before we start, we need to connect to the Azure subscription from a PowerShell console. Here's the command to do this:
Connect-AzAccountAzAccount
This will open a pop-up window where we need...