Skip to content

Commit c5d222c

Browse files
modified runCommand permissions on managed linux
1 parent 8a7d363 commit c5d222c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

articles/virtual-machines/linux/run-command-managed.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,13 @@ The *updated* managed Run Command uses the same VM agent channel to execute scri
2828
- Support for long running (hours/days) scripts
2929
- Passing secrets (parameters, passwords) in a secure manner
3030

31+
## Limiting access to Run Command
32+
33+
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-based-access-control/built-in-roles.md#reader) role and higher levels have this permission.
34+
35+
Running a command requires the `Microsoft.Compute/virtualMachines/runCommand/write` permission. The [Virtual Machine Contributor](../../role-based-access-control/built-in-roles.md#virtual-machine-contributor) role and higher levels have this permission.
36+
37+
You can use one of the [built-in roles](../../role-based-access-control/built-in-roles.md) or create a [custom role](../../role-based-access-control/custom-roles.md) to use Run Command.
3138

3239
## Azure CLI
3340

0 commit comments

Comments
 (0)