Skip to content

Commit 8ad2b46

Browse files
authored
Merge pull request #189721 from axelgMS/patch-38
Update run-command-managed.md
2 parents 613eb78 + 4a3e231 commit 8ad2b46

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

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

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,28 +75,28 @@ az vm run-command delete --name "myRunCommand" --vm-name "myVM" --resource-group
7575
This command will deliver the script to the VM, execute it, and return the captured output.
7676

7777
```powershell-interactive
78-
Set-AzVMRunCommand -ResourceGroupName "myRG" -VMName "myVM" -Name "RunCommandName" –SourceScript "Write-Host Hello World!"
78+
Set-AzVMRunCommand -ResourceGroupName "myRG" -VMName "myVM" -RunCommandName "RunCommandName" –SourceScript "Write-Host Hello World!"
7979
```
8080

8181
### List all deployed RunCommand resources on a VM
8282
This command will return a full list of previously deployed Run Commands along with their properties.
8383

8484
```powershell-interactive
85-
Get-AzVMRunCommand AzVMRunCommand -ResourceGroupName "myRG" -VMName "myVM"
85+
Get-AzVMRunCommand -ResourceGroupName "myRG" -VMName "myVM"
8686
```
8787

8888
### Get execution status and results
8989
This command will retrieve current execution progress, including latest output, start/end time, exit code, and terminal state of the execution.
9090

9191
```powershell-interactive
92-
Get-AzVMRunCommand AzVMRunCommand -ResourceGroupName "myRG" -VMName "myVM" -Name "RunCommandName" -Status
92+
Get-AzVMRunCommand -ResourceGroupName "myRG" -VMName "myVM" -RunCommandName "RunCommandName" -Status
9393
```
9494

9595
### Delete RunCommand resource from the VM
9696
Remove the RunCommand resource previously deployed on the VM. If the script execution is still in progress, execution will be terminated.
9797

9898
```powershell-interactive
99-
Remove-AzVMRunCommand AzVMRunCommand -ResourceGroupName "myRG" -VMName "myVM" -Name "RunCommandName"
99+
Remove-AzVMRunCommand -ResourceGroupName "myRG" -VMName "myVM" -RunCommandName "RunCommandName"
100100
```
101101

102102

0 commit comments

Comments
 (0)