APIM gets stuck in APIM updating state when custom domain is added. It sucussesfully added the cert and then removes it without any logs

Dhruv 0 Reputation points
2025-05-01T19:59:10.6766667+00:00

{

"error": {

"code": "ServiceLocked",

"message": "The API Service SpectrumBeat-apim is transitioning at this time. Please try the request again later."
```  }

}  
  
Service is being updated...   
  
Please help me provide some insight on how to fix. We have been having this issue for weeks now. 
Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,385 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Shireesha Eeraboina 2,825 Reputation points Microsoft External Staff Moderator
    2025-05-02T06:15:29.7366667+00:00

    Hi Dhruv,

    It seems like your APIM instance is stuck in the "Updating" state because the service is transitioning, and the "ServiceLocked" error is blocking further updates. This typically happens when there’s an issue during the APIM update process, often related to changes like adding custom domains or certificates.

    Sometimes APIM can take a while to fully apply changes. If possible, wait a bit and retry the request.

    Please check these threads for more details on these issues :

    https://learn.microsoft.com/en-sg/answers/questions/2099453/apim-instance-stuck-transitioning

    https://learn.microsoft.com/en-us/answers/questions/2085540/api-management-instance-stuck-in-transitioning-mod

    This occurs because the previous operation was still in progress. Could you please retry and confirm if you were able to purge the service successfully now?

    I hope this addresses your query. Please let me know if you need any further assistance or clarification.

    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.