I'm able to execute the run command using python for Linux Azure VM's as mention in this link
For Windows, it works for a basic print out such below.
run_command_parameters = {
'command_id': 'RunPowerShellScript',
'script': [
'$arg1 = "hello world"',
'echo $arg1'
]
}
However, I'm not able to pass parameters. Anyone experienced this and know a solution?
run_command_parameters = {
'command_id': 'RunPowerShellScript',
'script': [
'echo $arg1'
],
'parameters':[
{'name':"arg1", 'value':"hello world"}
]
}