Query Details
Use Case: Generating a list of expiring SSL certificates for proactive renewal within the next 90 days. Query: Certificate | project SubjectName, ValidFromDateTime, ValidToDateTime, CommonName | where ValidToDateTime > now() and ValidToDateTime < now() + 90d
The query is used to generate a list of SSL certificates that will expire within the next 90 days. It selects specific information about each certificate, such as the subject name, validity period, and common name. The query filters the results to only include certificates that have a validity end date greater than the current date and less than 90 days in the future. This allows for proactive renewal of expiring certificates.

Ugur Koc
Released: February 4, 2024
Tables
Keywords
Operators