Vladislav Budnikov
Vladislav Budnikov

Reputation: 218

Azure cloud shell always shows "command not found"

Azure cloud shell shows "command not found" no matter what command I enter - sudo, bash, az, apt-get etc. I suppose this is due to the fact I have run these commands:

sudo rm /var/lib/apt/lists/lock

sudo rm /var/cache/apt/archives/lock

sudo rm /var/lib/dpkg/lock

Is there a way to restore the cloud shell or only Azure staff has this permissions?

Upvotes: 2

Views: 6654

Answers (2)

Claire Furney
Claire Furney

Reputation: 2378

If you want to start afresh with brand new storage at least, you can unmount the fileshare whilst in the shell using clouddrive unmount. Warnings are shown describing what will happen.

clouddrive unmount warnings

When you next try to use the shell, it will prompt you to provide a resource group, storage account and fileshare (select "show advanced settings") just as it did when configuring for the first time.

For further details see: https://learn.microsoft.com/en-us/azure/cloud-shell/persisting-shell-storage

Upvotes: 1

Jason Ye
Jason Ye

Reputation: 13954

Cloud Shell offers a browser-accessible, pre-configured shell experience for managing Azure resources without the overhead of installing, versioning, and maintaining a machine yourself.

Here us the tools in cloud shell, please refer to it.

Is there a way to restore the cloud shell or only Azure staff has this permissions?

In cloud shell, it seems we have no permission to do some configure.

Maybe we can delete this cloud shell(in resource group), then re-install it.

Upvotes: 3

Related Questions