Get StdOut from RunCommand using Azure VM Javascript SDK
问题 I'm using the Azure VM Javascript SDK in my Node.js webApp. I'm trying to use the RunCommand Function to run a custom script on my Azure virtual machines. The problem I'm having is with obtaining the response from running the command which should contain the StdOut and StdErr strings. If I run the command from the Azure CLI, Like the following: az vm run-command invoke -g 'myResource' -n 'myVm' --command-id RunPowerShellScript --scripts 'Get-ChildItem -Name' Then I am able to receive the