An Azure service that provides a hybrid, multi-cloud management platform for APIs.
Hello Dan Ditchburn,
Welcome to the Microsoft Q&A and thank you for posting your questions here.
I understand that you are failing to update SSL Certificate in Custom domain of API Management service.
Your APIM Standard v2 instance is not just failing to auto-rotate the Key Vault certificate, it is stuck in a service-level infrastructure transition (ServiceLocked). That is why Key Vault sync, switching certificate reference, and even manual upload all roll back.
First verify that certificate stored as a Key Vault certificate, APIM managed identity has secret read access (Get + List for access-policy vaults, or Key Vault Certificate User for RBAC vaults), and if Key Vault firewall is enabled use system-assigned identity with Trusted Microsoft Services enabled and the required network settings.
Then use APIM Custom domains > View sync logs and Sync certificates. If ServiceLocked persists or updates still revert, stop retrying portal changes and open an Azure technical support request for APIM, asking Microsoft to clear the stuck backend service transition and repair/re-run hostname certificate synchronization.
Keep Application Gateway on the built-in *.azure-api.net hostname only as a temporary workaround until the backend lock is cleared and the custom domain presents the renewed certificate. All the links below are for more reading and steps:
- https://learn.microsoft.com/en-us/azure/api-management/configure-custom-domain,
- https://learn.microsoft.com/en-us/azure/api-management/api-management-howto-use-managed-service-identity,
- https://learn.microsoft.com/en-us/azure/api-management/api-management-troubleshoot-cannot-add-custom-domain,
- https://learn.microsoft.com/en-us/azure/azure-portal/supportability/how-to-create-azure-support-request
I hope this is helpful! Do not hesitate to let me know if you have any other questions, steps or clarifications.
Please don't forget to close up the thread here by upvoting and accept it as an answer if it is helpful.