Open
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
Content source URL
Author
Document Id
e7d2f266-0b25-3b15-6278-40c58d41600d