Has anyone succeeded in pulling the expiration dates of Azure App Credentials (client-secret / certificate) directly into Dynatrace?
I’m not referring to secrets stored in Azure Key Vault (those are already covered by the Key Vault integration). I need to surface the expiry information that Azure exposes under:
Azure AD App registrations Certificates & secrets
Context
Dynatrace SaaS, ActiveGate 1.313
Azure Monitor integration already enabled
What I’ve tried
Azure Monitor Metrics/Logs – couldn’t find any metric or table that exposes credential expiry.
Dynatrace Extensions 2.0 – checked available extension libraries; none seem to target applications endpoints.
Hey @JeanBlanc ,
I just wanted to check in and see if you still need help with this. If so, I’d be happy to look into it for you! :blush:
Please let me know what works best for you.
Thanks for checking back
Yes — I can confirm that I’ve already implemented a fully functional solution for this use case.
What I ended up doing
I built an export based on Microsoft Graph to pull App Registration credential expiry (client secrets + certificates) and bring it into Dynatrace in a way that supports dashboards and alerting for customers.
So overall: solution is already in production, and my customers are using it today to monitor expiration dates and get proactive alerts.
Hi @Mattw1 — happy to share the high-level approach.
Overall architecture:
A scheduled PowerShell script runs on a runner (VM/automation host).
The script queries Microsoft Graph to retrieve App Registrations / Service Principals and their credential expiration dates (secrets/certs).
It generates a status log (expired / expiring soon / valid + metadata like app name/id and expiry date).
The log is shipped into Dynatrace via Dynatrace Log Monitoring / Log ingest.
In Dynatrace, the logs are used to build a Dashboard v2 (Dynatrace Managed in this example), and optionally a log-based alert / event when thresholds are met.