Hi Ajmal Amir, It looks loke you are trying to run script with sudo in azure cloud shell. In that case that is an expected behaviour. In Azure Cloud Shell, users are set as regular users without sudo access. This is a known design limitation.
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 usesudo
or run any command that requires elevated permissions.> https://learn.microsoft.com/en-us/azure/cloud-shell/faq-troubleshooting#bash-limitations
If you need to perform tasks that require root or sudo access, you might need to consider using a full virtual machine in Azure instead. Let me know if this help you. Luis