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,260 points
11,967 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

Hope this helps!!

To know more about Azure, enroll today with our Azure certification course.

Thanks!!

answered Nov 13, 2020 by MD
• 95,460 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,460 points
1,384 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
3,602 views
0 votes
1 answer

How to install Windows Azure Storage Emulator?

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

answered Mar 7, 2019 in Azure by Prerna
• 1,960 points
2,827 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 Prerna
• 1,960 points
2,715 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,230 points

edited Jun 21, 2023 by Khan Sarfaraz 1,126 views
0 votes
2 answers

Azure DevOps and its need?

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

answered Aug 29, 2020 in Azure by nbavis
• 380 points
1,452 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,230 points
959 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,230 points
2,099 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,460 points
1,097 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,460 points
869 views
webinar REGISTER FOR FREE WEBINAR X
REGISTER NOW
webinar_success Thank you for registering Join Edureka Meetup community for 100+ Free Webinars each month JOIN MEETUP GROUP