Skip to content

Commit e519175

Browse files
removed extra spacing
1 parent 6d1ba91 commit e519175

File tree

1 file changed

+7
-7
lines changed

1 file changed

+7
-7
lines changed

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

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ ms.service: virtual-machines
66
ms.collection: windows
77
author: nikhilpatel909
88
ms.author: erd
9-
ms.date: 09/07/2022
9+
ms.date: 11/03/2022
1010
ms.topic: how-to
1111
ms.reviewer: erd
1212
ms.custom: devx-track-azurepowershell, devx-track-azurecli
@@ -21,8 +21,7 @@ The Run Command feature uses the virtual machine (VM) agent to scripts within an
2121
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):
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
@@ -40,7 +39,7 @@ az vm run-command create --name "myRunCommand" --vm-name "myVM" --resource-group
4039
```
4140

4241
### 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.
4443

4544
```azurecli-interactive
4645
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,
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

@@ -267,9 +269,7 @@ GET /subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers
267269
GET /subscriptions/<subscriptionId>/resourceGroups/<resourceGroupName>/providers/Microsoft.Compute/virtualMachines/<vmName>/runcommands/<runCommandName>?$expand=instanceView&api-version=2019-12-01
268270
```
269271

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.
272+
### Delete a specific Run Command deployment
273273

274274
You can also delete the instance of Run Command.
275275

0 commit comments

Comments
 (0)