Hello everyone and Happy New Year from the Azure CLI Team! A new year seems like a good time to share something new and we’re happy to announceaz init!
az initis a new extension that gives you an easy, in-tool configuration setup option. It's intended to quickly set up global configurations suitable for your current environment. It also reduces typical onboarding friction and helps users understand some common configuration options.
az init adjusts the same configuration file as az config and is meant to help simplify the configuration process whereas az config allows you to go a bit deeper.
To install the extension, simply run az extension add --name init. To start configuring, run az init. You can use preset bundles or customize your setup with a walk through to easily adjust things like syntax highlighting, output types, error output, and more!
Currently, there are two preset bundles. One configures the CLI for human interaction focusing on usability and another for automation focusing on performance.
The interaction configuration sets the following:
Table output formattingfor readability.
Verbose error outputfor all triggered events including warnings.
Error remediation recommendations.
Syntax highlightingfor readability in terminal.
Turns on the progress barfor long running commands.
The automation configuration sets the CLI to the opposite of the human interaction configuration:
JSON output formattingfor programmatic use.
Error only output.
Error recommendationsare turnedoff.
Syntax highlightingis turnedoff.
Progress barfor long running commands is turnedoff.
If you would like a different configuration, you can aslo choose to complete a walkthrough and customize your experience. We hope you enjoyaz init and would love to hear your feedback in the comments or on Twitter!