Azure.ResourceManager System.NotImplementedException: The method or operation is not implemented.

Chandra Shekhar Azad 1 Reputation point
2022-10-17T12:27:15.357+00:00

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
{count} votes

1 answer

Sort by: Most helpful
  1. wx2486 5 Reputation points
    2024-02-11T07:14:11.1333333+00:00

    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.

    1 person found this answer helpful.
    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.