talira

Azure CLI

A cross-platform command-line tool to connect to Azure and run administrative commands on Azure resources

open sourceMITself-hostablefree

The Azure CLI (az) is Microsoft's open source command-line tool for creating and managing Azure resources, interactively or from Bash, PowerShell and cmd scripts. Commands follow a group, command, parameter pattern, output defaults to JSON with table and other formats, --query filters results with JMESPath, and extensions add commands for more services. It installs on Windows, macOS and Linux, runs in a Docker container, and is preinstalled in the browser-based Azure Cloud Shell. It is MIT licensed and collects usage telemetry unless you turn it off.

Ways to install

Problems it solves

  • create and manage Azure resources from a terminal or script instead of the portal
  • automate repetitive Azure admin tasks in Bash or PowerShell scripts
  • switch between Azure subscriptions quickly from the command line
  • assign Azure roles to a service principal from a deployment script
  • filter Azure command output down to just the fields I need
  • see my Azure resources as a readable table instead of a wall of JSON
  • run Azure commands from a browser without installing anything locally
  • add commands for newer Azure services to my command-line tool
  • check in a script whether an Azure resource exists from the exit code

Features

  • tab completion for groups, commands and some parameters
  • --query with JMESPath
  • JSON, table and TSV output
  • exit codes for scripting
  • extensions (az extension)
  • runs in Azure Cloud Shell
  • Docker container
  • installers for Windows (WinGet, MSI, ZIP), macOS and Linux (apt, dnf, zypper, tdnf)
  • telemetry that can be turned off
  • next-generation CLI in preview with named sign-in profiles

Capabilities

Has a command line toolplan not known
Takes pluginsplan not known

Alternatives

The same job

These do what Azure CLI does.

  1. Google Cloud CLI The gcloud command-line tool for managing Google Cloud resources
  2. AWS CLI A unified tool to manage your AWS services

Compare Azure CLI with the top 3