How to run Azure CLI in a Docker container

0 votes
Hi Guys,

I want to install Azure CLI on top of the Docker container. So that it will consume very limited resources. How can I install that?
Nov 13, 2020 in Azure by akhtar
• 38,210 points
618 views

1 answer to this question.

0 votes

H@akhtar,

You can use Docker to run a standalone Linux container with the Azure CLI pre-installed. Docker gets you started quickly with an isolated environment to run the CLI in. The image can also be used as a base for your own deployments.

$ docker run -it mcr.microsoft.com/azure-cli


Hope this helps!!

If you need to know more about Azure, enroll with Microsoft Azure training course today.

Thank you!!

answered Nov 13, 2020 by MD
• 95,300 points

Related Questions In Azure

0 votes
1 answer

How to get the list of names of Azure blob files in a container?

We can get some additional info like Size, ...READ MORE

answered Jun 27, 2018 in Azure by club_seesharp
• 3,450 points
12,165 views
0 votes
0 answers

How to create a sub-container in Azure?

How to create a sub-container in Azure ...READ MORE

Jun 28, 2019 in Azure by sabby
• 4,370 points
507 views
0 votes
1 answer

How to create a sub-container in Azure?

You can create a container named "content" and ...READ MORE

answered Jun 28, 2019 in Azure by Perry
• 17,100 points
833 views
0 votes
1 answer

How can I schedule a pipeline to run in azure datafactory?

You can use the scheduler trigger or ...READ MORE

answered Jan 2, 2020 in Azure by Sirajul
• 59,070 points
207 views
0 votes
1 answer

What is Azure Cloud Service?

Azure Cloud Services is an example of ...READ MORE

answered Jan 10, 2020 in Azure by Sirajul
• 59,070 points
290 views
0 votes
2 answers

Azure DevOps and its need?

Azure DevOps is a hosted service providing ...READ MORE

answered Aug 28, 2020 in Azure by nbavis
• 380 points
405 views
0 votes
1 answer

What is Azure stack?

Azure Stack is a hybrid cloud computing software solution ...READ MORE

answered Jan 10, 2020 in Azure by Sirajul
• 59,070 points
265 views
0 votes
1 answer

How is Azure Cosmos db different from an Azure SQL db?

Azure Cosmos DB is Microsoft’s globally distributed database ...READ MORE

answered Jan 10, 2020 in Azure by Sirajul
• 59,070 points
1,214 views
0 votes
1 answer

How to create a container in Azure Cloud?

Hi@akhtar, You can launch a container on any ...READ MORE

answered Nov 13, 2020 in Azure by MD
• 95,300 points
90 views
0 votes
1 answer

How to create a managed container registry in Azure?

Hi@akhtar, To run a container, you need an ...READ MORE

answered Nov 13, 2020 in Azure by MD
• 95,300 points
60 views