Azure Application Gateway Certificate update with KeyVault integration not working as expected

Michal Fajta 10 Reputation points
2026-07-15T10:49:56.94+00:00

In documentation there is information, that

Any change to Application Gateway forces a check against Key Vault to see if any new versions of certificates are available

https://learn.microsoft.com/en-us/azure/application-gateway/renew-certificates?wt.mc_id=knwlserapi_inproduct_azportal#certificates-on-azure-key-vault

But we have issue, that our certificate will be updated in 1-4h after new version was created in keyvault. But this cannot be triggered by AppGW changes.

Issue is we are reissuing the certificates with new cert provider, so question is if there are special conditions when this certificate update is not triggered for certificate that don't have same thumbprint or have different rootca ?
As this is not documented.

Update:

  • We are using version less URL for secrets.
  • AI reply didn't help
Azure Application Gateway
Azure Application Gateway

An Azure service that provides a platform-managed, scalable, and highly available application delivery controller as a service.


1 answer

Sort by: Most helpful
  1. Christos Panagiotidis 3,301 Reputation points
    2026-07-16T07:33:51.6333333+00:00

    What you are seeing matches a recently clarified behavior. The normal autorotation path is a Key Vault poll every four hours, so a 1–4 hour delay is expected. Although the renewal page says any Application Gateway change triggers a check, Microsoft's newer troubleshooting guidance says that reapplying the same versionless URI—or making an unrelated/empty gateway update—may not force an immediate fetch because keyVaultSecretId did not change.

    A different thumbprint, issuer, or root CA is not itself a rotation blocker. The new Key Vault version must still contain a supported, exportable certificate: PFX or PEM with the private key, complete intermediate chain, correct content type, and valid Key Vault access for the gateway's managed identity.

    For a deterministic refresh, temporarily change the SSL certificate reference to the latest versioned secret ID, then restore the versionless ID. In CLI terms, run az network application-gateway ssl-cert update first with the latest versioned secret URL, and again with https://<vault>.vault.azure.net/secrets/<certificate>. This changes the value that controls the fetch while preserving future autorotation.

    If it still does not rotate, verify the PFX/private key and full chain, identity permissions, Key Vault firewall access, and the gateway provisioning state.

    Official guidance:

    https://learn.microsoft.com/en-us/azure/application-gateway/renew-certificates#certificates-on-azure-key-vault

    https://learn.microsoft.com/en-us/troubleshoot/azure/application-gateway/troubleshoot-application-gateway-key-vault-certificate#resolution-e-application-gateway-serves-an-older-certificate-than-the-current-key-vault-version-autorotation-stalls

    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.