Azure CLI 2.0
The Azure CLI 2.0 is Azure's new command-line experience for managing Azure resources. You can use it in your browser with Azure Cloud Shell, or you can install it on macOS, Linux, and Windows and run it from the command line.
Azure CLI 2.0 is optimized for managing and administering Azure resources from the command line, and for building automation scripts that work against the Azure Resource Manager. Using the Azure CLI 2.0, you can create VMs within Azure as easily as typing the following command:
az vm create -n MyLinuxVM -g MyResourceGroup --image UbuntuLTS
Use the Cloud Shell to run the CLI in your browser, or install it on macOS, Linux, or Windows. Read the Get Started article to begin using the CLI. For information about the latest release, see the release notes.
The following samples can help you learn how to perform common scenarios with Azure CLI 2.0:
A detailed reference is also available that documents how to use each individual Azure CLI 2.0 command.
Get started with Azure CLI 2.0 now.
If you use the previous version of the CLI (Azure CLI), you can continue to use it.
If you use both CLIs, remember that
azure is the old CLI - Azure CLI, and that
az is the new CLI - Azure CLI 2.0.