Azure CLI: Difference between revisions
Jump to navigation
Jump to search
(→Login) |
|||
(14 intermediate revisions by the same user not shown) | |||
Line 12: | Line 12: | ||
brew install azure-cli | brew install azure-cli | ||
</syntaxhighlight> | </syntaxhighlight> | ||
= | =Configuration= | ||
{{External|https://docs.microsoft.com/en-us/cli/azure/azure-cli-configuration}} | |||
{{External|https://docs.microsoft.com/en-us/cli/azure/ | 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== | |||
===<tt>LOCATION</tt>=== | |||
The default [[Azure_Concepts#Location|location]] to use for all commands. | |||
=CLI Options= | |||
==-o== | |||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
az | az [...] -o tsv [...] | ||
</syntaxhighlight> | </syntaxhighlight> | ||
==--query== | |||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
az | az aro show [...] --query "consoleProfile.url" -o tsv | ||
</syntaxhighlight> | </syntaxhighlight> | ||
=Operations= | |||
==Version== | ==Version== | ||
<syntaxhighlight lang='bash'> | <syntaxhighlight lang='bash'> | ||
az version | az version | ||
</syntaxhighlight | </syntaxhighlight> | ||
==Other Operations== | |||
* [[Azure_Security_Operations#Login|Login]] | |||
* [[Azure_Security_Operations#Login_Status_and_Account_Information|Login status and account information]] |
Latest revision as of 00:42, 20 November 2020
External
Internal
Installation
Homebrew
brew install 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
-o
az [...] -o tsv [...]
--query
az aro show [...] --query "consoleProfile.url" -o tsv
Operations
Version
az version