Skip to main content

Connect, code, and grow

Microsoft Build · May 19 – 22, 2025

Join developers and AI innovators to refactor your skills at Microsoft Build.

Register now

This browser is no longer supported.

Upgrade to Microsoft Edge to take advantage of the latest features, security updates, and technical support.

Download Microsoft Edge More info about Internet Explorer and Microsoft Edge
Learn
Suggestions will filter as you type
Sign in

  • Profile
  • Settings
Sign out
Learn
    • Documentation

      In-depth articles on Microsoft developer tools and technologies

    • Training

      Personalized learning paths and courses

    • Credentials

      Globally recognized, industry-endorsed credentials

    • Q&A

      Technical questions and answers moderated by Microsoft

    • Code Samples

      Code sample library for Microsoft developer tools and technologies

    • Assessments

      Interactive, curated guidance and recommendations

    • Shows

      Thousands of hours of original programming from Microsoft experts

    Microsoft AI Skills Fest

    Register Now!

    April 8 - May 28, 2025

    • ASP.NET
    • Azure
    • Dynamics 365
    • Microsoft 365
    • Microsoft Copilot
    • Microsoft Entra
    • Microsoft Exchange
    • Microsoft Fabric
    • Microsoft Intune
    • .NET
    • Power Apps
    • Power BI
    • Power Platform
    • Microsoft Purview
    • SharePoint
    • SQL
    • Microsoft Teams
    • Visual Studio
    • Windows
    • Windows Server
    View all products

    Microsoft AI Skills Fest

    Register Now!

    April 8 - May 28, 2025

    • C++
    • C#
    • DAX
    • Java
    • OData
    • OpenAPI
    • Power Query M
    • VBA

    Microsoft AI Skills Fest

    Register Now!

    April 8 - May 28, 2025

    • Learn for Organizations
    • Artificial intelligence
    • Compliance
    • DevOps
    • Platform engineering
    • Security

    Microsoft AI Skills Fest

    Register Now!

    April 8 - May 28, 2025

Suggestions will filter as you type
Sign in

  • Profile
  • Settings
Sign out
Azure
      • Azure AI Services
      • Azure App Service
      • Azure Databricks
      • Azure DevOps
      • Azure Functions
      • Azure Monitor
      • Azure Virtual Machines
      • Compute
      • Networking
      • Storage
      • AI & machine learning
      • Analytics
      • Databases
      • Security
    • View all products
    • Cloud Adoption Framework
    • Well-Architected Framework
    • Azure Architecture Center
    • Python
    • .NET
    • JavaScript
    • Java
    • PowerShell
    • Azure CLI
    • View all developer resources
    • Start your AI learning assessment
      • Cloud concepts
      • AI fundamentals
      • Intro to generative AI
      • Azure Architecture fundamentals
    • Earn credentials
    • Instructor-led courses
    • View all training
  • Troubleshooting
    • Product overview
    • Latest blog posts
    • Pricing information
    • Support options
        • Azure AI Services
        • Azure App Service
        • Azure Databricks
        • Azure DevOps
        • Azure Functions
        • Azure Monitor
        • Azure Virtual Machines
        • Compute
        • Networking
        • Storage
        • AI & machine learning
        • Analytics
        • Databases
        • Security
      • View all products
      • Cloud Adoption Framework
      • Well-Architected Framework
      • Azure Architecture Center
      • Python
      • .NET
      • JavaScript
      • Java
      • PowerShell
      • Azure CLI
      • View all developer resources
      • Start your AI learning assessment
        • Cloud concepts
        • AI fundamentals
        • Intro to generative AI
        • Azure Architecture fundamentals
      • Earn credentials
      • Instructor-led courses
      • View all training
    • Troubleshooting
      • Product overview
      • Latest blog posts
      • Pricing information
      • Support options
Portal Free account
Read in English
Read in English Edit

Share via

Facebook x.com LinkedIn Email

Azure Command-Line Interface (CLI) documentation

Official product documentation for Azure command-line interface (Azure CLI). Azure CLI is a cross-platform command-line tool for managing Azure resources with interactive commands or scripts.

About Azure CLI

Overview

  • Get started
  • What is Azure CLI?
  • Support lifecycle

Training

  • Create Azure resources
  • Control Azure services
  • Manage virtual machines

Installation

Download

  • Overview
  • Install - Windows
  • Install - Linux
  • Install - macOS
  • Run in Azure Cloud Shell
  • Run in a Docker container

What's new

What's new

  • Overview
  • Release notes
  • Upcoming breaking changes
  • Impact of MFA in automation

Azure CLI reference

Reference

  • Command reference

Identity and authentication

How-To Guide

  • Authentication methods
  • Sign in with Web Account Manager (WAM)

Concepts

How-To Guide

  • Manage subscriptions
  • Use the Azure REST API
  • Query command output
  • Change output formats
  • Script Azure resources at scale

Tutorial

  • Learn to use the Azure CLI
  • Work with service principals
  • Create virtual machines

Configuration

How-To Guide

  • Configure settings
  • Protect sensitive information

Fundamentals

Get started

  • Conceptual articles
  • Onboarding cheat sheet
  • Tips to use Azure CLI successfully

Samples

sample

  • Samples
  • Samples repo

Environment-specific guidance

Concept

  • Work in interactive mode
  • How-to use Azure CLI in a Bash environment
  • Considerations in a PowerShell environment

Help & support

Overview

  • Report product issues
  • Troubleshoot
  • Get help from the community
  • Follow Azure CLI on X
  • Azure Tools Blog
English (United States)
Your Privacy Choices
  • Previous Versions
  • Blog
  • Contribute
  • Privacy
  • Terms of Use
  • Trademarks
  • © Microsoft 2025
English (United States)
Your Privacy Choices
  • Previous Versions
  • Blog
  • Contribute
  • Privacy
  • Terms of Use
  • Trademarks
  • © Microsoft 2025