An Azure service that provides a hybrid, multi-cloud management platform for APIs.
Hello Lily,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that your Developer Tier APIM Instance Stuck in "Scheduled Maintenance: Started" Status.
The issue is that the APIM instance is stuck in an Azure-controlled service update/maintenance state. Azure applies APIM service updates automatically through phased rollout, and customers cannot force exactly when an instance receives or completes the update. - https://learn.microsoft.com/en-us/azure/api-management/configure-service-update-settings
What you can do without waiting on backend intervention is to recover the service on a replacement APIM instance, then redirect traffic. For testing, the replacement should not remain on Developer tier if availability matters, because Developer tier is for non-production and does not provide SLA. Use Basic v2, Standard v2, Standard, or Premium, depending on the required features and budget. - https://learn.microsoft.com/en-us/azure/api-management/api-management-features, https://azure.microsoft.com/en-us/pricing/details/api-management/
The best practice is to:
- Confirm the current APIM resource is stuck in maintenance using Resource Health and Activity Log.
- Stop troubleshooting API policies, backend services, keys, or code.
- Create a replacement APIM instance, preferably on an SLA-backed tier.
- Restore from a valid APIM backup if available.
- If no backup exists, redeploy APIs, products, policies, named values, subscriptions, and developer portal configuration from IaC/source control/OpenAPI.
- Reapply custom domains and TLS certificates.
- Redirect DNS/CNAME to the new APIM gateway.
- Keep the original instance only for evidence if Microsoft Support/Product Group root-cause confirmation is required.
After the replacement gateway is deployed and traffic is redirected, customer testing can continue without waiting for the stuck Developer-tier maintenance operation to clear. APIM backup and restore is the documented disaster recovery method for reconstituting an API Management service, and Microsoft notes that custom hostname configuration must be handled separately on the target service. - https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-disaster-recovery-backup-restore, https://learn.microsoft.com/en-us/rest/api/apimanagement/api-management-service/restore?view=rest-apimanagement-2024-05-01. Use the associated resource links for more reading and steps
I hope this is helpful. Please! Do not hesitate to let me know if you have any other questions, steps or clarifications.
Please do not close the thread by upvoting and accepting the answer if any part of it is helpful.