How To Install Azure AZ Module In PowerShell

Recently, I got the requirement to install the Azure AZ module. In this article, I will walk you through the complete steps to do this.

How To Install Azure AZ Module In PowerShell

To install Azure AZ module in PowerShell, follow the below steps.

1. Open Windows PowerShell ISE with Run as administrator option.

Install Azure AZ Module In PowerShell

2. Now, we can execute the below PowerShell command to install the Az module for the current user.

Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force

After executing the above command, the Az module was installed successfully, as shown in the screenshot below.

how to install azure az module in powershell

3. We can execute the below PowerShell command to install the Az module for all users.

Install-Module -Name Az -Scope AllUsers -Repository PSGallery -Force

After executing the above PowerShell command, I got the expected output as shown below,, and the Az powershell module was installed successfully for all users.

how to install az module in azure powershell

4. If you wish to do the silent installation without any prompts, use the below Powershell command.

Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force -AllowClobber

After executing the above command, I got the expected output below.

install-module az allowclobber

5. We can also execute the below PowerShell command to install any specific version of the Az module, as shown below.

Install-Module -Name Az -RequiredVersion 5.5.0

After executing the above command, I got the expected output below.

install azure az module

Conclusion

Installing Azure AZ module in PowerShell is so easy using the information mentioned in this article.

You may also like following the articles below.

Azure Virtual Machine

DOWNLOAD FREE AZURE VIRTUAL MACHINE PDF

Download our free 25+ page Azure Virtual Machine guide and master cloud deployment today!