Getting issue/error when updaing the custom domain in APIM

Ritik Mittal 0 Reputation points
2026-07-15T06:38:46.4033333+00:00

We are trying to update the custom domain in APIM and i have Lets Encrypt (certbot) certificate but when i am trying to add the certificate and click on save then after some time it fail to provide me the given hostname as custom domain (i also added cname and txt in my godaddy related to that subdomain) but i am getting this error so can you check

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 2cb36954-4590-4199-a9af-259e90089d98 and TimeStamp 7/15/2026 5:56:25 AM.

Screenshot 2026-07-15 120652.png

Azure API Management
Azure API Management

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


3 answers

Sort by: Most helpful
  1. TP 160.7K Reputation points Volunteer Moderator
    2026-07-16T07:46:19.8+00:00

    Hi,

    Based on everything you have described it doesn't appear you are doing anything wrong and there is some sort of a service issue. There is another person experiencing same error as you. Unsure if that person is on consumption in East US 2 as well or different region.

    Just now I repeated my test with East US 2 (before I tested on East US) and was successful. It could be an issue with the particular deployment unit your APIM instance is on and not a region-wide problem.

    I recommend you create Technical support request if you have Azure support plan. To create Severity A (<1 hour response) request in Azure portal you need at least Standard plan. Below link allows you to upgrade your plan if needed:

    https://portal.azure.com/#view/Microsoft_Azure_Support/HelpAndSupportBlade/~/supportPlans

    If you choose Developer support (or lower severity case under Standard support) you have to post here on Q & A, instead of creating request in the portal, and then if a Microsoft External Staff person deems it necessary, they will create a technical support request on your behalf. This is why I suggest Standard support plan if possible. If you want you could set plan not to renew so that you are charged for one month.

    The above policy is how Microsoft's Priority Community Support works.

    https://learn.microsoft.com/en-us/azure/azure-portal/supportability/priority-community-support

    Please click Accept Answer and upvote if the above was helpful.

    Thanks.

    -TP

    Was this answer helpful?

    0 comments No comments

  2. Ritik Mittal 0 Reputation points
    2026-07-16T07:20:00.3133333+00:00

    Thanks for the suggestion — I ran the exact test you described (self-signed cert via PowerShell New-SelfSignedCertificate, exported to .pfx, same CNAME already in place, uploaded as Custom type, saved, waited). It did not work the same way on my end — the update sometimes reports "Succeeded" in Activity Log, but the domain still returns a stale/wrong response (Azure's generic "Web Site not found" fallback page, or a cert mismatch), not a working connection like you got in Chrome.

    I also tried a third certificate delivery method since posting — Key Vault-backed certificate, with Managed Identity enabled on the APIM instance and granted Key Vault Secrets User (RBAC) + the automatic access-policy grant via the Portal's "Access Key Vault certificates" prompt. This attempt failed outright with the same generic error: "Unable to Update API service at this time."

    So across 3 different certificate sources — Let's Encrypt (Custom), self-signed (Custom), and Key Vault — none successfully bind the custom domain on my instance, while your self-signed test worked fine on yours. This makes me think it's something specific to my instance or region rather than a certificate content/format issue.

    My APIM region: East US 2

    Given self-signed worked for you but fails identically to my other attempts on my end, could this be:

    • A region-specific issue?
    • Some corrupted/stuck state specific to this APIM instance that a fresh instance wouldn't have?

    New correlation ID from the Key Vault failure: 33b9e8d4-157f-4543-ab6d-51abf3a0c513 (Previous ones already shared: d8789f39-1764-4a42-8d6b-8c7e8ad8727d, 3bf290f8-ec22-4870-8d66-0dfa58d3779f, 5080c867-1013-4dcd-9079-2a79cedc1660, 2cb36954-4590-4199-a9af-259e90089d98)

    At this point I suspect this needs a formal Azure Support ticket rather than continued troubleshooting here — would you agree, or is there something else worth trying first?

    Was this answer helpful?

    0 comments No comments

  3. AI answer

    2026-07-15T06:39:14.5966667+00:00

    For APIM custom domain updates, the supported checks in this scenario are:

    1. Verify APIM can read the certificate from Key Vault
      • In Azure portalAPI Management instanceSecurityManaged identities, make sure the managed identity is On.
      • Go to Key vaults → the target vault → Access policies.
      • Check whether the APIM service principal exists and has Secret permissions: Get.
      • If it does not exist, add an access policy for the APIM service with:
        • Key permissions: None
        • Secret permissions: Get
        • Certificate permissions: None
      • Save the changes, then retry adding the custom domain.
    2. Recheck DNS ownership records for the custom hostname
      • Make sure the custom host name has a CNAME pointing to the APIM default host name.
      • Also create or verify the TXT ownership record for the custom host name and confirm the value is correct.
      • A documented case with the same behavior was resolved after correcting the TXT value and keeping the CNAME pointed to the APIM default name.
    3. If the certificate is being uploaded as a PFX, verify the file format
      • The certificate file must be password-protected and in PKCS#12 (.pfx) format.
      • Other formats are rejected.
    4. If the save operation still rolls back after these checks
      • A documented APIM case shows that when custom domain updates appear to apply, then revert after the service enters Updating, the issue can be caused by a stuck backend service transition.
      • In that case, further portal retries do not resolve it. The next step is to open an Azure technical support request and provide the correlation ID and timestamp from the failed activity log entry so support can investigate and clear the backend state.

    Based on the details provided, the most relevant causes are:

    • APIM missing permission to read the certificate secret from Key Vault.
    • Incorrect CNAME/TXT ownership records for the hostname.
    • A backend APIM service transition issue that requires Azure Support.

    AI-generated content may be incorrect. Read our transparency notes for more information.

    Was this answer helpful?

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.