Training
Module
Manage Azure resources with Windows PowerShell - Training
Learn to manage Azure resources with Windows PowerShell.
This browser is no longer supported.
Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.
This article explains how to install the Az PowerShell module from the PowerShell Gallery on macOS.
The Az PowerShell module is a rollup module. Installing it downloads the generally available Az PowerShell modules and makes their cmdlets available for use.
Open the Terminal or other shell host application and run pwsh
to start PowerShell.
Use the Install-Module cmdlet to install the Az PowerShell module:
Install-Module -Name Az -Repository PSGallery -Force
Use the Update-Module cmdlet to update to the latest version of the Az PowerShell module.
Update-Module -Name Az -Force
Updating the Az PowerShell module using Update-Module
doesn't remove old versions of the Az
PowerShell module from your system.
To remove the Az PowerShell module from your system, see Uninstall the Azure PowerShell module.
To start managing your Azure resources with the Az PowerShell module, launch a PowerShell session
and run Connect-AzAccount
to sign in to Azure:
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.
For solutions to common installation issues with the Az PowerShell module, see Troubleshoot installation problems with the Az PowerShell module.
To file an issue about the Az PowerShell module, see: file an issue on GitHub.
To provide feedback from within a PowerShell session, use the Send-Feedback cmdlet.
To learn more about managing your Azure resources with the Az PowerShell module, see Get Started with Azure PowerShell.
Azure PowerShell feedback
Azure PowerShell is an open source project. Select a link to provide feedback:
Training
Module
Manage Azure resources with Windows PowerShell - Training
Learn to manage Azure resources with Windows PowerShell.