Does an auto renewing App Service Certificate also update the certificate's KeyVault secret?

TomA 0 Reputation points
2025-02-20T16:35:15.39+00:00

I have a wild card App Service Certificate which has auto-renewed this week. I can see that the linked private certificates haven't yet been sync'd with the new thumbprint of the certificate but as I understand it from reading the documentation, these should get sync'd when the certificate's secret in key vault is updated.
User's image

When I look at the secret in Key Vault I can see that the current version has an expiry date which matches the previous cert's expiry date

User's image

My question is, do I need to do anything here or will a new version of this secret be created automatically and my private linked certificates be sync'd automatically?

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
8,960 questions
{count} votes

2 answers

Sort by: Most helpful
  1. TomA 0 Reputation points
    2025-03-04T15:57:36.35+00:00

    I was able to solve this - I suspected that the service used by the app service certificate renewal didn't have permissions to update the key vault secret and turns out I was correct.

    To solve the issue, I had to grant secret list, read and write permissions to Microsoft.Azure.CertificateRegistration (principle id  f3c21649-0979-4721-ac85-b0216b2cf413). Once I did that, when I rekeyed the certificate, the secret value was updated with the new cert and the manual sync resolved the linked app service private certificates.

    0 comments No comments

  2. Harshitha Veeramalla 1,306 Reputation points Microsoft External Staff Moderator
    2025-03-17T09:03:03.5333333+00:00

    Hi @TomA

    I'm glad that you were able to resolve your issue and thank you for posting your solution so that others experiencing the same thing can easily reference this!

    Since the Microsoft Q&A community has a policy that "The question author cannot accept their own answer. They can only accept answers by others ", I'll repost your solution in case you'd like to "Accept " the answer.

    Issue :

    The App Service Certificate has renewed automatically, but the secret in Key Vault hasn’t been updated with the new certificate and the linked private certificates still show the old thumbprint.

    Solution :

    To solve the issue, I had to grant secret list, read and write permissions to Microsoft.Azure.CertificateRegistration

    • Assign List, Read, and Write permissions on the Key Vault to Microsoft.Azure.CertificateRegistration (Principal ID: f3c21649-0979-4721-ac85-b0216b2cf413).
    • Rekey the certificate to update the secret with the new certificate.
    • Manually sync to update the linked private certificates in the App Service.

    Please click Accept Answer and kindly upvote it so that other people who faces similar issue may get benefited from it.

    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.