Azure / Azure/run-command-extension-linux
Run command as Rest API - body of the API call documentation not clear
- Lingua principale
- Go
- Stelle
- 4
- Fork
- 13
- Metriche di merge delle PR
- Nessuna PR unita negli ultimi 30g
Descrizione
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"
}
}
Guida per i contributori
Nessuna guida per i contributori indicizzata per questo repository
Direzione di ricerca
Inizia dalla documentazione collegata di RunCommandInputParameter e dalla risposta BadRequest segnalata. Identifica dove sono documentati il corpo della richiesta POST e il valore dello script di RunShellScript, quindi rendi inequivocabile la forma prevista della richiesta e verificala rispetto all'errore segnalato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Valutazione
- Stack tecnologico
- shell
- Ambito
- documentation
- Tipo di issue
- Documentazione
- Difficoltà
- 2/5
- Tempo stimato
- 1-3 ore
- Stato di attività
- Ferma
- Chiarezza
- Da chiarire
- Idoneità per principianti
- 25/100