Powershell Installation and Modules
Install latest version of Azure CLI on Mac
brew update && brew install azure-cli Original Article
Install latest version of Azure CLI on Linux
# YOLO curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash Resources: https://docs.microsoft...
Install PowerShell
brew install --cask powershell-preview Run a powershell terminal with: pwsh-preview
Update Powershell
brew update brew upgrade powershell-preview --cask
Uninstall Powershell
brew uninstall --cask powershell sudo rm -rf /usr/local/bin/pwsh-preview /usr/local/microsoft/po...
Install Azure PowerShell module
For the current user: if ($PSVersionTable.PSEdition -eq 'Desktop' -and (Get-Module -Name AzureRM...
Setup the AzureRMAlias module
This will deal with incompatibilities with older scripts that use AzureRM: Enable-AzureRmAlias
List available modules
Get-Module -ListAvailable
Get authenticated in Powershell
Connect-AzAccount %USERNAME
List commands in a module
Get-Command -Module <module name>
List functions in a module
Get-Command -Module <module name> -Type Function
Authenticate via the CLI
Run this command to get authenticated: az login This will result in a web browser opening, or a...