Azure / Azure/azure-powershell

[Doc]: Set-AzVMRunCommand & Invoke-AzVMRunCommand

Open
#27,059 0 comments 0 reactions 0 assignees View on GitHub
customer-reported needs-triage
Dominant language
C#
Stars
4.8k
Forks
4.3k
Avg merge
2d 17h
Merged PRs (30d)
51

Description

### Type of issue

Code doesn't work

### Feedback

With Set-AzVMRunCommand you can save custom scripts -SourceScript. -SourceScript and -SourceCommandId are exclusive, you cannot use them together.

Set-AzVMRunCommand -SourceScript successfully saves your script with a null commandId

Invoke-AzVMRunCommand has -CommandId being MANDATORY

Result: You can save runcommands with custom scripts, but you cannot invoke them.

### Page URL

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

### 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

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.