azure-sdk-for-net icon indicating copy to clipboard operation
azure-sdk-for-net copied to clipboard

[QUERY] Get a command sent to run

Open Sdoubleb opened this issue 2 years ago • 1 comments
trafficstars

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:

  1. is it possible to pass an input with a custom ID like "MyScript"?
  2. is there any way to get run commands using GetVirtualMachineRunCommands or something like this?

Environment

No response

Sdoubleb avatar Feb 10 '23 17:02 Sdoubleb

Thank you for your feedback. Tagging and routing to the team member best able to assist.

jsquire avatar Feb 10 '23 19:02 jsquire

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.

Sdoubleb avatar Apr 03 '23 16:04 Sdoubleb