How to run Azure powershell as administrator

Ananya Sarkar 311 Reputation points
2021-01-06T16:00:22.587+00:00

Hi,

I am using Azure powershell opened from Azure portal, so i dont need to install helm, as it is inbuilt.
Now I also want to run commands in this Azure powershell as administrator. I am working in a windows system, so "sudo" is not accepted. In this case, how I can open Azure powershell as administrator from azure portal?

Azure Role-based access control
Azure Role-based access control
An Azure service that provides fine-grained access management for Azure resources, enabling you to grant users only the rights they need to perform their jobs.
711 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. JamesTran-MSFT 36,531 Reputation points Microsoft Employee
    2021-01-06T22:43:58.78+00:00

    @Ananya Sarkar
    Thank you for your post!

    When it comes to Azure PowerShell within the Portal, there isn't a way to "run as administrator". When you launch Cloud Shell, you'll be using the user's RBAC or AzureAD permissions that you're signed in with when you run Azure PowerShell commands. You can also use the "-Force" parameter as needed when executing commands.

    If you're using Azure PowerShell on your desktop, you can simply right-click your PS icon and select run as administrator.

    If you have any other questions, please let me know.
    Thank you for your time and patience throughout this issue.

    ----------

    Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.