Skip to content

Commit 5997e57

Browse files
authored
Merge pull request #87852 from alexandair/patch-25
Fix a PowerShell example
2 parents 1a4a988 + ece254a commit 5997e57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ az vm run-command delete --name "myRunCommand" --vm-name "myVM" --resource-group
7676
This command will deliver the script to the VM, execute it, and return the captured output.
7777

7878
```powershell-interactive
79-
Set-AzVMRunCommand -ResourceGroupName "myRG" -VMName "myVM" -Name "RunCommandName" – Script "Write-Host Hello World!"
79+
Set-AzVMRunCommand -ResourceGroupName "myRG" -VMName "myVM" -Name "RunCommandName" –SourceScript "Write-Host Hello World!"
8080
```
8181

8282
### List all deployed RunCommand resources on a VM

0 commit comments

Comments
 (0)