Skip to content

Instantly share code, notes, and snippets.

@PixelRobots
Created August 31, 2018 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save PixelRobots/5b4a76a44ad8bd08510a24ae759a3d8e to your computer and use it in GitHub Desktop.
Save PixelRobots/5b4a76a44ad8bd08510a24ae759a3d8e to your computer and use it in GitHub Desktop.
Invoke-AzureRmVMRunCommand -ResourceGroupName '<myResourceGroup>' -Name '<myVMName>' -CommandId 'RunPowerShellScript' -ScriptPath '<pathToScript>' -Parameter @{"arg1" = "var1";"arg2" = "var2"}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment