How to install the Az PowerShell module
The Az PowerShell module is available from a global repository called the PowerShell Gallery. You can install the module onto your local machine through the Install-Module cmdlet.
To install the Az PowerShell module on Windows, macOS, or Linux, follow these steps:
- Open a PowerShell terminal.
- Run the following command to install the Az PowerShell module:
Code snippet
Install-Module -Name Az -Scope CurrentUser -Repository PSGallery -Force
- If you're asked whether you trust modules from
PSGallery, answerYesorYes to All.
Once the Az PowerShell module is installed, you can start using it to manage your Azure resources. For more information, see the Az PowerShell documentation: https://docs.microsoft.com/en-us/powershell/scripting/.
No comments:
Post a Comment