Cant Assign a custom domain to API Management

Arturo Diaz 20 Reputation points
2026-07-14T17:48:05.46+00:00

I keep getting erro on trying to assign a custom domain. have tried key valut and custom certificates without success. can try doing it thru portal or az and nothing works. on az i receive: (UpdateApiServiceFailed) Unable to Update API service at this time. Please check resource group deployment logs for specific errors, correct them and try again.If you are deploying into a virtual network please check the following document https://aka.ms/apimvnet for network requirements. If you still need help from support, please reach out to them.Please provide correlationId f440032c-0a20-451f-a77d-a91add9ae071 and TimeStamp 7/14/2026 5:26:52 PM.

Code: UpdateApiServiceFailed

Message: Unable to Update API service at this time. Please check resource group deployment logs for specific errors, correct them and try again.If you are deploying into a virtual network please check the following document https://aka.ms/apimvnet for network requirements. If you still need help from support, please reach out to them.Please provide correlationId f440032c-0a20-451f-a77d-a91add9ae071 and TimeStamp 7/14/2026 5:26:52 PM.. I have been fighting with this for three days now. Any help is greatly appreciated. I have already tried with different approaches. (keyvault certificates, custom certificates, etc)

Azure API Management
Azure API Management

An Azure service that provides a hybrid, multi-cloud management platform for APIs.


Answer accepted by question author
Siddhesh Desai 8,210 Reputation points Microsoft External Staff Moderator
2026-07-14T18:01:32.6033333+00:00

Hi @Arturo Diaz

Thank you for reaching out to Microsoft Q&A.

Posting this answer for the community.

As per our discussion on Private chat the issue is resolved.

Based on the investigation, the behavior is expected. The backend validation uses information from the orchestration service that is not exposed to customers. This error can occur if the CNAME record is missing or if an incorrect TXT record exists for the custom domain. In this case, it is likely that a previously configured incorrect TXT record caused the validation failure. Once the TXT record was corrected, the custom domain validation succeeded.

Resolution:

  • Ensure the CNAME record is configured correctly for the custom domain.
  • Verify that there are no stale or incorrect TXT records associated with the domain.
  • Since the issue is now resolved, no further action is required.
  • If the issue reoccurs in the future with a valid CNAME record and no conflicting TXT records, please open a new support request for further investigation.

We're glad to hear the issue has been resolved. Thank you for your patience and follow-up throughout the troubleshooting process.

If the resolution was helpful, kindly take a moment to click on 210246-screenshot-2021-12-10-121802.pngand click on Yes for was this answer helpful. And, if you have any further query do let us know.

Was this answer helpful?

1 person found this answer helpful.
0 comments No comments

1 additional answer

Sort by: Most helpful
  1. Christos Panagiotidis 3,551 Reputation points
    2026-07-18T12:32:00.0533333+00:00

    An empty Deployments list can be expected when the change was submitted as a direct API Management control-plane update rather than an ARM deployment. Check the APIM Activity log at the failure time, filter for Microsoft.ApiManagement/service/write, and open the failed event. Match the correlation ID and capture its status JSON.

    Before retrying, confirm the hostname CNAME resolves to the default APIM hostname and the PFX contains a private key, full certificate chain, and matching subject or SAN. For Key Vault, use the certificate’s secret endpoint, set its content type to application/x-pkcs12, and grant the APIM managed identity Get and List secret permissions. With a vault firewall, use the system-assigned identity and trusted-services exception.

    Because both certificate paths fail and the backend team supplied an RCA, apply that recommendation first. If it still fails, return the Activity Log event, resource ID, region, UTC timestamp, and correlation ID to the existing case.

    Was this answer helpful?

    0 comments No comments

Your answer

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