Get it from PowerShell gallery AzureCli:
Install-Module -Name AzureCliCmdLet to support invoking the Azure CLI from PowerShell.
This PowerShell module provide a CmdLet and an alias to call the Azure CLI tool az in a more PowerShell friendly way.
Invoke the Azure CLI (az) from PowerShell and make processing the output easier in PowerShell.
Unless specified otherwise, converts the output from JSON to a custom object. This makes further processing of the output in PowerShell much easier.
It provides better error handling, so that a script fails if the Azure CLI fails.
In some scenarios the Azure CLI changes console output colors, but does not change them back to what they were. This may happen for errors, verbose output, and in some other cases. Invoke-AzCli fixes the console colors back to what they were before calling Azure CLI.
Allows to set most of the common or often used Azure CLI parameters through PowerShell parameters:
-Outputfor--output. Setting-Output,--output, or-RawstopsInvoke-AzClifrom converting the output of Azure CLI to custom objects.-Helpfor--help.-Queryfor--query.-Subscriptionfor--subscription.-Subscriptionprovides argument completion for subscription names and subscription IDs for the logged-in account.-ResourceGroupfor--resource-group-ResourceGroupprovides argument completion for resource group names for the active subscription, or the subscription provides with-Subscription.-CliVerbosity NoWarningsfor--only-show-errors-CliVerbosity Verbosefor--verbose.-CliVerbosity Debugfor--debug.
In most cases only the PowerShell or the Azure CLI version of a parameter can be used. Specifying both is an error.
For full help, run Get-Help Invoke-AzureCli -Full.
iaz is the alias to Invoke-AzCli.