How to install Azure CLI with yum

0 votes

Hi Team,

I am new to Azure Cloud. I have a Linux system. I want to install Azure CLI with yum in the Linux system. How can I do that?

Nov 13, 2020 in Azure by akhtar
• 38,170 points
1,284 views

1 answer to this question.

0 votes

Hi@akhtar,

For Linux distributions with yum such as RHEL, Fedora, or CentOS, there's a package for the Azure CLI. You need to create the yum repository for Azure CLI. You can follow the below-given steps.

  • Import the Microsoft repository key.

$ sudo rpm --import https://packages.microsoft.com/keys/microsoft.asc
  • Create local azure-cli repository information.

sudo sh -c 'echo -e "[azure-cli]
name=Azure CLI
baseurl=https://packages.microsoft.com/yumrepos/azure-cli
enabled=1
gpgcheck=1
gpgkey=https://packages.microsoft.com/keys/microsoft.asc" > /etc/yum.repos.d/azure-cli.repo'
  • Install with the yum install command.

$ sudo yum install azure-cli
  • Now run the login command.

$ az login
answered Nov 13, 2020 by MD
• 95,180 points

Related Questions In Azure

0 votes
1 answer

How to install Azure CLI on macOS?

Hi@akhtar, For the macOS platform, you can install ...READ MORE

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

How can i upload to Azure Blob storage with Shared Access key?

For GetBlobReferenceFromServer to work, the blob must be present ...READ MORE

answered Jun 12, 2018 in Azure by club_seesharp
• 3,450 points
2,002 views
0 votes
1 answer

How to install Windows Azure Storage Emulator?

There may be an issue with the ...READ MORE

answered Mar 6, 2019 in Azure by p
• 1,960 points
1,205 views
0 votes
1 answer

How to add a body to a HttpWebRequest that is being used with the Azure Service management API?

The following code should help: byte[] buf = ...READ MORE

answered Apr 3, 2019 in Azure by p
• 1,960 points
403 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,050 points
242 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
364 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,050 points
229 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,050 points
1,013 views
0 votes
1 answer

How to install Azure CLI on Windows?

Hi@akhtar, For Windows, the Azure CLI is installed ...READ MORE

answered Nov 10, 2020 in Azure by MD
• 95,180 points
335 views
0 votes
1 answer

How to login to Azure with Azure CLI?

Hi@akhtar, You can run the Azure CLI with ...READ MORE

answered Nov 10, 2020 in Azure by MD
• 95,180 points
96 views