The Az PowerShell module is a rollup module. Installing the Az PowerShell module downloads the
generally available modules and makes their cmdlets available for use.
The recommended installation method and PowerShell version for the Az PowerShell module:
Install from the PowerShell Gallery
Use with PowerShell version 7 or higher
This article explains how to install the Az PowerShell module on Windows from the
PowerShell Gallery.
Prerequisites
Run the following command from PowerShell to determine your PowerShell version:
PowerShell
$PSVersionTable.PSVersion
Determine if you have the AzureRM PowerShell module installed:
This article explains how to install the Az PowerShell module on Windows using an MSI installer. The
MSI installer is provided for environments where the PowerShell Gallery may be blocked by a
firewall, or an offline installer is needed.
Важно
The MSI installation option can only be used to install the Az PowerShell module for use with
Windows PowerShell 5.1.
Prerequisites
Run the following command from PowerShell to determine your PowerShell version:
PowerShell
$PSVersionTable.PSVersion
Determine if you have the AzureRM PowerShell module installed
Locate the most recent Az PowerShell module. They are listed chronologically with no name. For example, 9.5.0
Scroll down to the end of the patch notes and click the arrow next to "Assets" to reveal the
MSI options.
Click on the Az-Cmdlets MSI of your choice to start the download
The installer automatically removes older versions of the Az PowerShell module that were installed
using an MSI. The MSI package installs modules in "${env:ProgramFiles}\WindowsPowerShell\Modules"
Sign in
To start managing your Azure resources with the Az PowerShell module, launch a PowerShell session
and run Connect-AzAccount to sign in to Azure:
Azure PowerShell
Connect-AzAccount
Use your Azure account login credentials to log into the browser window that opens.
You'll need to repeat this step for every new PowerShell session you start. To learn how to persist
your Azure sign-in across PowerShell sessions, see
Azure PowerShell context objects.
This module explains the Azure PowerShell environment and the Az module for Windows PowerShell. It also explains how to manage Microsoft Entra ID by using PowerShell modules.
As a Windows Server hybrid administrator, you integrate Windows Server environments with Azure services and manage Windows Server in on-premises networks.