You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/virtual-machines/linux/run-command-managed.md
+6-5Lines changed: 6 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,8 +21,7 @@ The Run Command feature uses the virtual machine (VM) agent to run scripts withi
21
21
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):
22
22
- Support for updated Run Command through ARM deployment template
23
23
- Parallel execution of multiple scripts
24
-
- Sequential execution of scripts
25
-
- RunCommand script can be canceled
24
+
- Sequential execution of scripts
26
25
- User specified script timeout
27
26
- Support for long running (hours/days) scripts
28
27
- Passing secrets (parameters, passwords) in a secure manner
@@ -53,6 +52,9 @@ This command will retrieve current execution progress, including latest output,
53
52
az vm run-command show --name "myRunCommand" --vm-name "myVM" --resource-group "myRG" --expand instanceView
54
53
```
55
54
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
+
56
58
### Delete RunCommand resource from the VM
57
59
Remove the RunCommand resource previously deployed on the VM. If the script execution is still in progress, execution will be terminated.
58
60
@@ -262,9 +264,8 @@ GET /subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers
262
264
GET /subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.Compute/virtualMachines/<vmName>/runcommands/<runCommandName>?$expand=instanceView&api-version=2019-12-01
263
265
```
264
266
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.
0 commit comments