Azure CLI: Difference between revisions

From NovaOrdis Knowledge Base
Jump to navigation Jump to search
Line 23: Line 23:
The default [[Azure_Concepts#Location|location]] to use for all commands.
The default [[Azure_Concepts#Location|location]] to use for all commands.


=CLI Options=
==--query==
<syntaxhighlight lang='bash'>
az aro show [...] --query "consoleProfile.url" -o tsv
</syntaxhighlight>
=Operations=
=Operations=
==Version==
==Version==

Revision as of 00:00, 20 November 2020

External

Internal

Installation

https://docs.microsoft.com/en-us/cli/azure/install-azure-cli
https://docs.microsoft.com/en-us/cli/azure/install-azure-cli-macos

Homebrew

brew install azure-cli

Configuration

https://docs.microsoft.com/en-us/cli/azure/azure-cli-configuration

Azure CLI can be configured for settings such as default argument values, logging and data collection. The configuration can be performed with 'az configure', in a configuration file and environment variables. The configuration precedence is (from higher priority to lower priority):

  • Command-line parameters
  • Parameter persisted values set with 'az config param-persist'
  • Environment variables
  • Values in the configuration file set with 'az configure'

Environment Variables

LOCATION

The default location to use for all commands.

CLI Options

--query

az aro show [...] --query "consoleProfile.url" -o tsv

Operations

Version

az version

Other Operations