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
@@ -21,8 +21,7 @@ The Run Command feature uses the virtual machine (VM) agent to scripts within an
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 orientated 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
@@ -40,7 +39,7 @@ az vm run-command create --name "myRunCommand" --vm-name "myVM" --resource-group
40
39
```
41
40
42
41
### List all deployed RunCommand resources on a VM
43
-
This command will return a full list of previously deployed Run Commands along with their properties.
42
+
This command will return a full list of previously deployed Run Commands along with their properties.
44
43
45
44
```azurecli-interactive
46
45
az vm run-command list --vm-name "myVM" --resource-group "myRG"
@@ -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
@@ -267,9 +269,7 @@ GET /subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers
267
269
GET /subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.Compute/virtualMachines/<vmName>/runcommands/<runCommandName>?$expand=instanceView&api-version=2019-12-01
268
270
```
269
271
270
-
### Cancel a specific Run Command deployment
271
-
272
-
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