Azure / azure-sdk-for-net

This repository is for active development of the Azure SDK for .NET. For consumers of the SDK we recommend visiting our public developer docs at https://learn.microsoft.com/dotnet/azure/ or our versioned developer docs at https://azure.github.io/azure-sdk-for-net.
MIT License
5.53k stars 4.82k forks source link

[QUERY] How to re-invoke a managed RunCommand that has already been created #47307

Open ras-relativity opened 4 days ago

ras-relativity commented 4 days ago

Library name and version

Azure.ResourceManager.Compute 1.6.0

Query/Question

Ive created a named Managed RunCommand with VirtualMachineRunCommandCollection.CreateOrUpdateAsync().

It automatically executed the command on create, and gives output when checked with GetAsync(..., expand: "InstanceView", ...)

I've read the output of the command, now I want to call the command again and have it be re-invoked on the server and output updated.

How can I do this? running CreateOrUpdateAsync again does not re-execute the command

Environment

Linux Ubuntu 20.04 Azure VM

github-actions[bot] commented 4 days ago

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

ArthurMa1978 commented 2 days ago

Thank you @ras-relativity for your feedback, @HarveyLink please look into this issue.