azure-powershell icon indicating copy to clipboard operation
azure-powershell copied to clipboard

[Doc]: Invoke-AzVMRunCommand example 1 is incorrect

Open masterofimages opened this issue 5 months ago • 1 comments

Type of issue

Code doesn't work

Feedback

The example states: "Invoke a command on Windows - Using ScriptPath parameter when the script resides on the remote Windows VM". This is incorrect. It should say "Invoke a command on Windows - Using ScriptPath parameter when the script resides on the local Windows VM". To run a script which resides on the remote Windows VM, ScriptString must be used.

Page URL

https://learn.microsoft.com/en-us/powershell/module/az.compute/invoke-azvmruncommand?view=azps-14.1.0&source=docs

Content source URL

https://github.com/Azure/azure-powershell/blob/main/src/Compute/Compute/help/Invoke-AzVMRunCommand.md

Author

@mikefrobbins

Document Id

e7d2f266-0b25-3b15-6278-40c58d41600d

Platform Id

7f4198ec-6ee3-a28b-1755-3607472dcb43

masterofimages avatar Jun 11 '25 12:06 masterofimages

Thanks for the feedback! We are routing this to the appropriate team for follow-up. cc @Drewm3, @TravisCragg-MSFT, @nikhilpatel909, @sandeepraichura, @hilaryw29, @GabstaMSFT, @ramankumarlive, @ushnaarshadkhan.