Azure PowerShell
The Azure PowerShell Az module is a rollup module. Installing the Az PowerShell module downloads the generally available modules and makes their cmdlets available for use.
Windows Installation & Setup
# Check for legacy AzureRM module
Get-Module -Name AzureRM -ListAvailable
# Set execution policy for current user
Get-ExecutionPolicy -List
Set-ExecutionPolicy -ExecutionPolicy RemoteSigned -Scope CurrentUser
# Install Az module from PSGallery
Install-Module -Name Az -Repository PSGallery -ForceEnable Command Prediction (Productivity Boost)
Install-Module -Name Az.Tools.Predictor -Force
Enable-AzPredictor -AllSession
Set-PSReadLineOption -PredictionViewStyle ListView
Set-PSReadLineOption -PredictionViewStyle InlineViewSign In to Azure
Linux Installation & Setup
Docker/Podman (Containerized Azure PowerShell)
Real-Life DevOps Example: Automate Resource Group Creation
Best Practices
References
Last updated