简体   繁体   中英

Azure CLI v1 vs v2?

what are some of the advantages and disadvantage of using Azure CLI v2 over Azure CLI v1?

I have searched various articles online. Sounds like Azure CLI v2 is more developer friendly, built on python and provides auto complete capabilities and works well with linux POSIX tools.

However, are there any enhancements made specifically in v2 to make it more Resilient and Fast?

what are some of the advantages and disadvantage of using Azure CLI v2 over Azure CLI v1?

You can consider them as 2 different things.

Azure classic CLI(v1) is recommended for only the classic (Azure Service Manager) deployment. And Azure classic CLI is currently only planned to have support through the end of 2018.

But Azure CLI(v2) is designed for working with the Resource Manager deployment style. And it does not support ASM/Classic mode services

However, are there any enhancements made specifically in v2 to make it more Resilient and Fast?

First, scripts are not compatible between both CLIs(v1 and v2).

Then some benefits of v2 is as following, you can also refer to this doc for more details:

1.Clean outputs for common workflows, such as you can use --out table , --out json, --out tsv

2.Improved command-line productivity:

You can use [tab][tab] to lookup parameters, including resource groups and names (only supported in BASH and BASH on Windows).

Work with either Azure resource ID values (--ids) or resource group and name (-g -n).

Built in client-side query engine powered by JMESPath

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM