How to install "bc" command in cloud shell

Close Coder 0 Reputation points
2024-03-23T19:05:06.33+00:00

I am trying to run this command "sudo apt-get install bc", but I get prompted for the "sudo password" and I am not sure what the sudo password is. I tried typing in the password associated with my microsoft/outlook account, but that did not work.

Has anyone else had this same issue?

Community Center Not monitored
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Dillon Silzer 57,826 Reputation points Volunteer Moderator
    2024-03-23T19:36:15.49+00:00

    Hello,

    I want to install a tool in Cloud Shell that requires sudo. Is that possible?

    No. Your user account in Cloud Shell is an unprivileged account. You can't use sudo or run any command that requires elevated permissions.

    Cited from https://learn.microsoft.com/en-us/azure/cloud-shell/faq-troubleshooting#i-want-to-install-a-tool-in-cloud-shell-that-requires-sudo-is-that-possible

    Make sure you have the correct privileges to run the install command through Azure RBAC and assign it to your Entra ID account.

    If this is helpful please accept answer.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.