I need to add/enable Run Commands in the Azure VM, currently it shows "No Run Commands Found"

Avishek Chowdhury 61 Reputation points
2022-11-11T06:32:31.75+00:00

Hi Team,
When I navigate to my Azure VM from Portal, and under Operations/RunCommand, I am unable to see the built-in Run Commands.
Reference: https://learn.microsoft.com/en-us/azure/virtual-machines/windows/run-command
It's coming like this:
259402-image.png

Any help/guidance will be appreciated.

Kind regards,
Avi

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,129 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,874 questions
0 comments No comments
{count} votes

Accepted answer
  1. srbhatta-MSFT 8,546 Reputation points Microsoft Employee
    2022-11-11T07:18:32.73+00:00

    Hello @Avishek Chowdhury ,
    Welcome to Microsoft QnA.
    Please check the RBAC role that has been assigned to your user identity.
    Listing the run commands or showing the details of a command requires the Microsoft.Compute/locations/runCommands/read permission on Subscription Level. The built-in Reader role and higher levels have this permission.

    Running a command requires the Microsoft.Compute/virtualMachines/runCommand/action permission. The Virtual Machine Contributor role and higher levels have this permission.

    You can use one of the built-in roles or create a custom role to use Run Command.

    Please check and get an appropriate RBAC role assigned to yourself to be able to view the commands.

    To know more - refer run-command

    Hope this helps. For any queries, feel free to reach back to me. I will look forward to your response.
    Thanks :)

    --------------

    Please accept as answer and upvote if the above information is helpful.

    0 comments No comments

0 additional answers

Sort by: Most helpful