3

[azure] cmd

 2 years ago
source link: https://gist.github.com/hochun836/73982f4ba84da7c4a62fb1cc837a454c
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client
[azure] cmd · GitHub

Instantly share code, notes, and snippets.

# base az // welcome az -h // -h <=> --help, there are "Group", "Subgroups", "Commands" az -v // -v <=> --version az version // show the versions of azure cli modules and extensions in JSON format by default or format configured by --output az login // log in to azure az logout // log out to remove access to azure subscriptions az account -h // there are "Group", "Subgroups", "Commands" az account lock -h // there are "Group", "Commands" az account list -h // there are "Command", "Arguments", "Global Arguments" az sccount list // get a list of subscriptions for the logged in account az account show // get the details of a subscription

# [note] how to install => ref: https://docs.microsoft.com/zh-tw/cli/azure/install-azure-cli

# [note] what is JMESPath JMESPath is a query language for JSON => ref: https://jmespath.org/

# [note] how to query azure cli command output using a JMESPath query => ref: https://docs.microsoft.com/en-us/cli/azure/query-azure-cli


About Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK