Recently, I attended a webinar, and I got some queries. This article discusses those queries on Azure CLI and their answers.
Table of Contents
- Azure CLI Query
- What is the Azure CLI command to create a new pipeline?
- In which operating system, we can use Azure CLI?
- What is the Azure CLI command to list all team members?
- Where is Azure CLI installed on Windows
- What is the Azure CLI command to create a machine learning workspace?
- What is the Azure CLI command to get the description of a team
- What do you need to install on your machine to let you execute Azure CLI commands locally
- What is the Azure CLI command to check unique cosmos db name?
- What is the Azure CLI command to list in table format the top 10 members of a team
- What is a good reason to use the Azure CLI?
- Which Azure CLI prefix is used to create an Azure Virtual Machine
- Which Azure CLI command is used to create new tag values?
- Why would you use the Azure cloud shell instead of the Azure CLI or PowerShell
- Which CLI command is used to unlock a locked Azure resource group?
- Which Azure CLI command should you use to create the service endpoint
- Which Azure CLI command is used to add a new Azure ad group?
- Which Azure CLI command authenticates to an Azure account?
- Which CLI command can be used to select an Azure subscription
- Where is Azure CLI in Azure Portal
- How to get service principal id in Azure CLI
- Which Azure CLI command is used to add a new Azure AD user account?
- How to downgrade Azure CLI
- Which Azure CLI command is used to create a virtual network?
- Which CLI command can be used to navigate between Azure AD tenants?
- What is the Azure CLI command to view the score of a model
- Which Azure CLI command shows the various Azure clouds
- How to check if Azure CLI is installed
- What is the Azure CLI command to view the score of a model?
- Which Azure CLI module is used to manage policies?
- Which CLI command can be used to select an Azure subscription?
- Which Azure CLI command authenticates to an Azure account
- How to get resource id in Azure CLI
Azure CLI Query
Let us discuss all the possible questions and answers related to Azure CLI.
What is the Azure CLI command to create a new pipeline?
Answer: az pipelines create. you can also use the Azure Portal to create a new pipeline. You need to open your Azure DevOps project, click on the Pipeline, and then click the Create Pipeline option. Check out the below screenshot for your reference.

In which operating system, we can use Azure CLI?
Answer: Windows, macOS, and Linux
What is the Azure CLI command to list all team members?
Answer: az devops team list-member
Where is Azure CLI installed on Windows
Answer: Below are the default locations.
C:\Program Files\Microsoft SDKs\Azure\CLI2 (For 64-bit)
C:\Program Files (x86)\Microsoft SDKs\Azure\CLI2 (For 32-bit)
What is the Azure CLI command to create a machine learning workspace?
Answer: az ml workspace create -n <Your workspace name> -g < Your resource group name> -l <location>
What is the Azure CLI command to get the description of a team
Answer: az devops team show
What do you need to install on your machine to let you execute Azure CLI commands locally
Answer: Azure Command-Line Interface (Azure CLI) via an MSI or ZIP file.
What is the Azure CLI command to check unique cosmos db name?
Answer: az cosmosdb check-name-exists –name <your_cosmos_db_name>
What is the Azure CLI command to list in table format the top 10 members of a team
Answer: az devops team list-member with –query parameter.
What is a good reason to use the Azure CLI?
Answer: It is so quick to get your Azure task done.
Which Azure CLI prefix is used to create an Azure Virtual Machine
Answer: az vm create
Which Azure CLI command is used to create new tag values?
Answer: az tag add-value
Why would you use the Azure cloud shell instead of the Azure CLI or PowerShell
Answer: You can get readily accessible browser-based applications without installing extra software on your local machine.
Which CLI command is used to unlock a locked Azure resource group?
Answer: az lock delete
Which Azure CLI command should you use to create the service endpoint
Answer: az network service-endpoint
Which Azure CLI command is used to add a new Azure ad group?
Answer: az ad group create
Which Azure CLI command authenticates to an Azure account?
Answer: az login
Which CLI command can be used to select an Azure subscription
Answer: az account set
Where is Azure CLI in Azure Portal
Answer: On the top right, just before the notifications icon, click the CloudShell button.

How to get service principal id in Azure CLI
Answer: az ad sp list
Which Azure CLI command is used to add a new Azure AD user account?
Answer: az ad user create
How to downgrade Azure CLI
Answer: You can uninstall the Azure CLI from your machine, and then you can install the lower version again.
Which Azure CLI command is used to create a virtual network?
Answer: az network vnet create
Answer: az login -tenant or az account set
What is the Azure CLI command to view the score of a model
Answer: az ml model show –name <model_name> –workspace-name <workspace_name> –resource-group <resource_group_name>
Which Azure CLI command shows the various Azure clouds
Answer: az cloud list
How to check if Azure CLI is installed
Answer: You can run the “az –version” command to check which version of Azure CLI is installed on your machine.
What is the Azure CLI command to view the score of a model?
Answer: az ml model show –name <model_name> –resource-group <resource_group_name> –workspace-name <workspace_name>
Which Azure CLI module is used to manage policies?
Answer: az policy
Which CLI command can be used to select an Azure subscription?
Answer: az account set
Which Azure CLI command authenticates to an Azure account
Answer: az login
How to get resource id in Azure CLI
Answer: az resource
You may also like following the articles below.
- How To Check Azure CLI Version In PowerShell
- How To Use Azure CLI In PowerShell
- Install Azure CLI on Windows Without Admin Rights
- Uninstall Azure CLI Windows
- How to log in to Azure CLI

I am Rajkishore, and I am a Microsoft Certified IT Consultant. I have over 14 years of experience in Microsoft Azure and AWS, with good experience in Azure Functions, Storage, Virtual Machines, Logic Apps, PowerShell Commands, CLI Commands, Machine Learning, AI, Azure Cognitive Services, DevOps, etc. Not only that, I do have good real-time experience in designing and developing cloud-native data integrations on Azure or AWS, etc. I hope you will learn from these practical Azure tutorials. Read more.
