Skip to content

Commit 6d1ba91

Browse files
updated linux managed run command doc based on Viv's feedback
1 parent 70ffa50 commit 6d1ba91

File tree

1 file changed

+6
-5
lines changed

1 file changed

+6
-5
lines changed

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

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,7 @@ The Run Command feature uses the virtual machine (VM) agent to run scripts withi
2121
The *updated* managed Run Command uses the same VM agent channel to execute scripts and provides the following enhancements over the [original action oriented Run Command](run-command.md):
2222
- Support for updated Run Command through ARM deployment template
2323
- Parallel execution of multiple scripts
24-
- Sequential execution of scripts
25-
- RunCommand script can be canceled
24+
- Sequential execution of scripts
2625
- User specified script timeout
2726
- Support for long running (hours/days) scripts
2827
- Passing secrets (parameters, passwords) in a secure manner
@@ -53,6 +52,9 @@ This command will retrieve current execution progress, including latest output,
5352
az vm run-command show --name "myRunCommand" --vm-name "myVM" --resource-group "myRG" --expand instanceView
5453
```
5554

55+
>[!Note] Output and error fields in `instanceView` is limited to last 4KB.
56+
>If you'd like to access the full output and error, you have the option of forwarding the output and error data to storage append blobs using `-outputBlobUri` and `-errorBlobUri` parameters while executing Run Command using `Set-AzVMRunCommand` or `Set-AzVMssRunCommand`.
57+
5658
### Delete RunCommand resource from the VM
5759
Remove the RunCommand resource previously deployed on the VM. If the script execution is still in progress, execution will be terminated.
5860

@@ -262,9 +264,8 @@ GET /subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers
262264
GET /subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.Compute/virtualMachines/<vmName>/runcommands/<runCommandName>?$expand=instanceView&api-version=2019-12-01
263265
```
264266

265-
### Cancel a specific Run Command deployment
266-
267-
To cancel a running deployment, you can PUT or PATCH on the running instance of Run Command and specify a blank script in the request body. This will cancel the ongoing execution.
267+
### Delete a specific Run Command deployment
268+
268269

269270
You can also delete the instance of Run Command.
270271

0 commit comments

Comments
 (0)