Streamline configuring Azure CLI with az init
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 announce az init!
az init is 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.
Getting Started
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!
Configuration Options
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 formatting for readability.
- Verbose error output for all triggered events including warnings.
- Error remediation recommendations.
- Syntax highlighting for readability in terminal.
- Turns on the progress bar for long running commands.
The automation configuration sets the CLI to the opposite of the human interaction configuration:
- JSON output formatting for programmatic use.
- Error only output.
- Error recommendations are turned off.
- Syntax highlighting is turned off.
- Progress bar for long running commands is turned off.
If you would like a different configuration, you can aslo choose to complete a walkthrough and customize your experience. We hope you enjoy az init and would love to hear your feedback in the comments or on Twitter!
Published on:
Learn moreRelated posts
Unlocking the Best of Azure with AzureRM and AzAPI Providers
With the recent release of AzAPI 2.0, Azure offers two powerful Terraform providers to meet your infrastructure needs: AzureRM and AzAPI. The ...
Announcing AzAPI 2.0
The AzAPI provider, designed to expedite the integration of new Azure services with HashiCorp Terraform, has now released 2.0. This updated ve...
Azure CLI docker container base Linux image is now Azure Linux
Starting from the version 2.64.0 of Azure CLI, the base Linux distribution of Azure CLI is now Azure Linux. Impact of the change ...
Mastering the Shorthand Syntax in your daily workflow
Introduction In this tech blog, we'll unravel the magic behind Azure CLI shorthand syntax and discover how it can elevate your command-line ex...
Azure Verified Modules - Monthly Update [June]
AVM Module Summary The AVM team are excited that our community have been busy building AVM Modules. As of June 17th, the AVM Footprint curren...
Azure Verified Modules - Monthly Update [May]
Quarterly Community Call This month we held our first community call. Thank you to everyone that attended & contributed. It was amazing t...
Azure CLI and PowerShell Tools Build 2024 Announcement
Microsoft has announced several new capabilities for Azure CLI and Azure PowerShell at the Microsoft Build 2024. The priority remains to provi...
Terraform on Azure May 2024 Update
Welcome to our April 2024 update! These blogposts will be covering everything we've gotten up to recently with Terraform on Azu...
Azure Verified Modules - Monthly Update [April]
In the April edition of the Azure Verified Modules update, the AVM team announces their upcoming quarterly community call scheduled for 21st M...
Announcing AzAPI Dynamic Properties
It’s been almost two years since the announcement of AzAPI, and the provider has eclipsed 20M+ downloads thanks to all of you. We’re ex...