az
Manage Azure cloud resources
TLDR
Log in to Azure
Manage azure subscription information
List all Azure Managed Disks
List all Azure virtual machines
Manage Azure Kubernetes Services
Manage Azure Network resources
Start in interactive mode
Display help
SYNOPSIS
az [group] [command] [arguments] [global parameters]
PARAMETERS
--help
Show help information.
--version
Show the version of the Azure CLI.
--output {json,jsonc,table,tsv,yaml,yamlc,none}
Specify the output format.
--query JMESPATH
JMESPath query string. See http://jmespath.org/ for more information and examples.
--verbose
Increase logging verbosity to show all debug logs.
--debug
Increase logging verbosity to show all debug logs.
DESCRIPTION
The az command is the Azure Command-Line Interface (CLI). It's a cross-platform tool allowing users to create, manage, and deploy Azure resources directly from the command line. It provides a comprehensive set of commands organized into modules that correspond to various Azure services like Compute, Storage, Networking, Databases, and more.
Users can automate tasks, integrate with other scripting languages, and manage Azure infrastructure as code using the Azure CLI. It supports various authentication methods, including Azure Active Directory, service principals, and managed identities. This allows secure access to Azure resources based on defined roles and permissions. az supports multiple output formats, including JSON, YAML, and table, allowing users to parse and integrate data in various ways. It can be installed on Windows, macOS, and Linux. Its ability to be used for shell scripts and automation makes it a critical tool in modern DevOps practices.
The Azure CLI is actively maintained and updated with new features and improvements, reflecting the constant evolution of Azure services.
CAVEATS
Requires a valid Azure subscription and Azure CLI to be installed and configured. Authentication is required to interact with Azure resources.
AUTHENTICATION
Before using the Azure CLI, you need to authenticate. Common methods include interactive login via az login, using a service principal (az ad sp create-for-rbac), or leveraging managed identities when running within an Azure environment.
COMMAND GROUPS
az is structured into logical command groups, such as az vm (Virtual Machines), az storage (Storage Accounts), az network (Networking), and more. Each group contains a variety of commands to manage resources within that service.
SEE ALSO
azure(1)