com.azure.core.management.exception.ManagementException: Long running operation is Failed or Cancelled. Error

Ayush Shrivastava 0 Reputation points
2025-04-16T16:23:33.9733333+00:00

This is happening quite frequently now.

When I am creating Elastic job agent I get

com.azure.core.management.exception.ManagementException: Long running operation is Failed or Cancelled.

Now this error is happening with every api call. I am using azure java sdk.

I was also getting this error when I was trying to create elastic job agent in parallel.

com.azure.core.management.exception.ManagementException: Status code 500, "{"error":{"code":"InternalServerError","message":"An unexpected error occured while processing the request. Tracking ID: '2768697d-5030-4273-a18e-0d04c16fcaf1'"}}"

I implemented a retry mechanism to test if this is because of cool down period and I got 100% success after 15 attempts and exponential backoff. Although this is not a much reliable solution.

Can someone help me finding a solution that can resolve this issue or a solution to make sure that the elastic job agent gets created successfully.

I am using

@ServiceMethod(
    returns = ReturnType.SINGLE
)
JobAgentInner createOrUpdate(String var1, String var2, String var3, JobAgentInner var4);


Method to create the agent.

SQL Server Transact-SQL
SQL Server Transact-SQL
SQL Server: A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.Transact-SQL: A Microsoft extension to the ANSI SQL language that includes procedural programming, local variables, and various support functions.
177 questions
{count} votes

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.