Any way to extract Certificate.NotAfter date from App Gateway Certificates in Azure Policy

Christophe Humbert 126 Reputation points
2023-02-13T14:52:42.19+00:00

Hello

I would like to know if there is any way to extract end of validity date of

Microsoft.Network/applicationGateways/sslCertificates[*].publicCertData

in App Gateway in Azure Policy

Thanks

Azure Policy
Azure Policy
An Azure service that is used to implement corporate governance and standards at scale for Azure resources.
976 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AnuragSingh-MSFT 21,491 Reputation points
    2023-02-23T04:29:23.68+00:00

    @Christophe Humbert I see that you are trying to get the expiry date of certificate used in App Gateway. As seen in the exported template of Ap gateway (by using the "Export Template"), the certificate data itself does not become part of the resource definition. Hence, it cannot be extracted in Azure Policy.

    Please let me know if you have any questions.

    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.