I have to answer this one because I got the exactly same error with similar code. The root cause is not any issue in the Azure.ResourceManager.Compute nuget package. They are working fine. The problem is that we used the returned object of PowerOn() as the result of the http request. This results in an attempt to sereliaze this object to json (I suppose), and this fails. This error goes away immediately when you return something else, say empty string, as the http response of your rest api. Hope this helps.
Azure.ResourceManager System.NotImplementedException: The method or operation is not implemented.
Chandra Shekhar Azad
1
Reputation point
Hi,
I am using the following nuget package "Azure.ResourceManager.Compute" to start, stop and delete VM in Azure.
https://www.nuget.org/packages/Azure.ResourceManager.Compute/1.0.0.
When I run this service I am receiving following error "Azure.ResourceManager System.NotImplementedException: The method or operation is not implemented."
After running. VM doesn't start or completely and it seems the stop or start operation is returns back without completing the task.
Below is the code.
[HttpPost("StartVM")]
public async Task
Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
9,046 questions