Official Microsoft Azure CLI for managing Azure resources, deployments, identities, and service APIs from the shell.
$brew install azure-cli
Agent Compatibility
JSON Output
Agent Skill
MCP Support
AI Analysis
Azure CLI is Microsoft's official command line for Azure resource management, identity-aware authentication, and service operations across compute, storage, networking, deployments, and policy. It also exposes lower-level escape hatches like az rest and az account get-access-token when you need to script Azure or Microsoft Graph APIs directly.
What It Enables
- Create, inspect, update, and delete Azure resources such as resource groups, virtual machines, storage accounts, networks, registries, and other service objects from one shell surface.
- Run ARM or Bicep deployments, validate templates, execute What-If previews, query subscription state, and fetch access tokens for follow-up automation.
- Use authenticated raw REST calls when the higher-level command surface is not enough, while still reusing current cloud, subscription, and credential context.
Agent Fit
- Broad use of
--outputand--querymakes results easy to parse in inspect/change/verify loops, and many commands return structured objects instead of human-only text. - Most operational commands are non-interactive once auth and subscription context are set, but
az logincan open a browser or launch interactive subscription selection with no JSON output. - Best for agents already operating in Azure-heavy environments that need one control surface spanning first-party services plus authenticated
az restfallbacks.
Caveats
- Authentication and subscription selection can be interactive; service principal, managed identity, or device-code flows are safer choices for unattended runs.
- The command surface is huge and defaults often favor local context or human-readable output, so stable automation should set explicit subscription, output, and non-interactive flags.