Error when trying to update the Ceritificate Issuer policies of a certificate

Brahim Ait Ouakrim 0 Reputation points Microsoft Employee
2026-06-17T16:01:23.2766667+00:00

Hello,

I am facing an issue when trying to update the Certificate Issuer policies of a certificate

For SFI compliance, I wanted to udpate the certificate issuer policies from 6 months duration and renewal at 50%, to 12 months duration and a renewal at 24%. I didn't face any error when update the policy in the portal. But after some time the policy is back to original 6 months duration and renewal at 50%.

I have activated diagnostics on Azure Key Vault resource. I can see my requests to update the certificate issuer policies to 12 month/24% but I can't see in the logs any trace of the request updating back the policy to 6 months/50%.

Can you please help me understand what I have missed in the process?

Thanks

Azure Key Vault
Azure Key Vault

An Azure service that is used to manage and protect cryptographic keys and other secrets used by cloud apps and services.


2 answers

Sort by: Most helpful
  1. Christos Panagiotidis 3,551 Reputation points
    2026-07-15T09:57:53.25+00:00

    Your PowerShell output confirms that Key Vault stored 12 months / 24% immediately after the save; it does not yet prove that the policy later reverted.

    When the portal next shows 6 months / 50%, immediately run:

    
    Get-AzKeyVaultCertificatePolicy -VaultName <vault> -Name <certificate> |
    
      Select-Object ValidityInMonths, RenewAtPercentageLifetime, Updated
    
    

    If this still returns 12 / 24, the portal view is stale—the policy itself did not change. If it returns 6 / 50, search the Key Vault audit logs around that timestamp for the certificate-policy update and inspect the identity, client information, caller IP, and correlation ID. Allow up to about ten minutes for audit records to arrive. Also check deployment pipelines, IaC, policy remediation, and the integrated CA template, which may enforce its own issuance settings.

    One important detail: RenewAtPercentageLifetime = 24 means renew after 24% of the lifetime has elapsed, not when 24% remains. If no update is audited but the API value truly changes, open a support case with both policy captures and exact timestamps.

    Was this answer helpful?

    0 comments No comments

  2. Moosa Khan 695 Reputation points Microsoft External Staff Moderator
    2026-07-14T17:16:31.9733333+00:00

    Hello Brahim Ait Ouakrim,

    Based on the information you've provided, the current evidence does not yet confirm that the certificate policy is actually being reverted.

    The PowerShell output you shared shows:

    • ValidityInMonths = 12
    • RenewAtPercentageLifetime = 24

    which are the values you updated the policy to. [Azure - Mi...rosoft Q&A | Learn.Microsoft.com]

    Before concluding that another process is resetting the policy, I would recommend validating the effective policy at the exact time you observe the portal showing the original 6 months / 50% values.

    Could you please capture the following when the issue occurs again?

    1. A screenshot of the Azure portal showing the 6 months / 50% settings.
    2. A fresh PowerShell or CLI export of the certificate policy taken at approximately the same time.
    3. The approximate timestamp when the policy appears to revert.

    If the portal shows 6 months / 50% but PowerShell still returns 12 months / 24%, that would indicate a discrepancy between the portal display and the stored policy.

    If both the portal and PowerShell show 6 months / 50%, then we can investigate whether another process (automation, deployment pipeline, Azure Policy remediation, or issuer-side policy synchronization) is updating the policy.

    Since the certificate is issued through an integrated CA, it would also be useful to understand whether the issuer template enforces specific validity or renewal settings. [Azure - Mi...rosoft Q&A | Learn.Microsoft.com]

    Please share the updated portal screenshot and PowerShell output when the behavior reoccurs, and we'll continue the investigation from there.

    Thanks, Moosa Khan

    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.