@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.