Get Azure VM PowerState in C#/dotnet using Azure.ResourceManager
I want to get the PowerState (on/off/restarting, etc.) of a known Azure VM instance in a C#/dotnet application using Azure.ResourceManager (not PowerShell, not CLI, not REST, not using any deprecated Fluent approach). I can do it successfully with REST so…