How to Install Azure AD Module

In this blog post, we will install Azure AD module for PowerShell.

Type the ‘Install-Module AzureAD’ command to install the Azure AD module.

Install-Module AzureAD

As you can see from the below screen, the installation process has started.

Once the installation process is complete, we can connect to an Azure AD subscription by typing the below command.



There you have it folks.

How to install Azure Powershell on Windows

In the blog post, we will be installing Azure PowerShell on Windows 10 machine.

Before we start the installation process, lets find out the Windows PowerShell version.


Now that we know the Windows PowerShell version, lets install Azure PowerShell by typing the below command.

Install-Module -Name Az -AllowClobber -Scope AllUsers

Once Azure PowerShell is installed, connect to an Azure account.


Once connected, we will see an Azure Subscription.

Use the Get-AzSubscription command to fetch Azure subscriptions.


Running the get-azresourcegroup command did not display any resource group(s) because there are no resource groups in the subscription.

Lets create a new resource group called ‘AKINFRA

New-AzResourceGroup -name ‘AKINFRA’ -Location ‘canadacentral’

The ‘AKINFRA‘ resource group was created.

The next step is to create a new virtual network called ‘InfraVnet

New-AzVirtualNetwork -ResourceGroupName ‘AKINFRA’ -Location ‘canadacentral’ -Name ‘InfraVnet’ -AddressPrefix