Azure / Azure/run-command-extension-linux
Run command as Rest API - body of the API call documentation not clear
- Dominant language
- Go
- Stars
- 4
- Forks
- 13
- PR merge metrics
- No merged PRs in 30d
Description
I was following this documentation and trying to run a simple shell script in a vm using this.
https://docs.microsoft.com/en-us/rest/api/compute/virtual%20machines%20run%20commands/runcommand#runcommandinputparameter
But what needs to be the content of the body of the post request is not clear. The commandID can be RunShellScript but where doe we provide the script value.
```
script: 'scriptname'
script: 'sh scriptname'
```
and other each resulting in
{
"error": {
"code": "BadRequest",
"message": "Error converting value \"/home/adminwm/quick-python-test.sh\" to type 'System.Collections.Generic.List`1[System.String]'. Path 'script', line 3, position 52.",
"target": "runCommandInput.script"
}
}
Contributor guide
No contributing guide indexed for this repository
Assessment
This issue has not been assessed yet.