azure-sdk-for-net
azure-sdk-for-net copied to clipboard
[QUERY] Get a command sent to run
Library name and version
Azure.ResourceManager.Compute 1.0.1.0
Query/Question
I call VirtualMachineResource.RunCommandAsync on a Windows Azure VM. I pass new RunCommandInput("RunPowerShellScript") to this method. If I try to pass an input with another ID differ from "RunPowerShellScript" I get Azure.RequestFailedException: The entity was not found in this Azure location.
Then I try to get the command by calling VirtualMachineResource.GetVirtualMachineRunCommands, but it doesn't return this script. It can only return commands that were deployed to the VM via REST API.
My questions are:
- is it possible to pass an input with a custom ID like "MyScript"?
- is there any way to get run commands using
GetVirtualMachineRunCommandsor something like this?
Environment
No response
Thank you for your feedback. Tagging and routing to the team member best able to assist.
Hi! @jsquire @xboxeer @fengzhou-msft are there any ideas with the problem? It seems to be just a question and it doesn't look like a hard job to answer it before fixing anything.