# Retrieve Azure App Credential Expiration Dates for Secure Access

**URL:** <https://community.dynatrace.com/t/retrieve-azure-app-credential-expiration-dates-for-secure-access/52169>\
**Category:** Cloud platforms\
**Tags:** azure, clouds\
**Created:** [June 19, 2025, 7:53am UTC](https://community.dynatrace.com/t/retrieve-azure-app-credential-expiration-dates-for-secure-access/52169 "2025-06-19T07:53:36Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![JeanBlanc](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jeanblanc/32/25897_2.png) [@JeanBlanc](https://community.dynatrace.com/u/JeanBlanc)\
**Post date:** [June 19, 2025, 7:53am UTC](https://community.dynatrace.com/t/retrieve-azure-app-credential-expiration-dates-for-secure-access/52169/1 "2025-06-19T07:53:36Z")

</div>

Hi community,

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**

1. **Azure Monitor Metrics/Logs** – couldn’t find any metric or table that exposes _credential_ expiry.
2. **Dynatrace Extensions 2.0** – checked available extension libraries; none seem to target applications endpoints.
3. **Custom API pull** – considered building an Extension 2.0 that calls  
GET [https://graph.microsoft.com/v1.0/applications/{id}?$select=id,displayName,passwordCredentials](https://graph.microsoft.com/v1.0/applications/%7Bid%7D?$select=id,displayName,passwordCredentials)  
…but before investing time I’d like to know if there’s an existing solution or best practice.

**Questions**

1. Did you manage to ingest this data into Dynatrace (metric, log, or event)?
2. If so, which approach worked best (builtin integration, Extension 1.0/2.0, Synthetic Monitor)?
3. Any pitfalls around token scopes, rate limits, or schema mapping I should watch out for?

Thanks in advance for any insights or code snippets!

Best,

 ![azure_app_20.png](https://global.discourse-cdn.com/dynatrace/original/3X/8/3/8377246681fc5122b9faee74b9da8bfb75a6e2a4.png)

---

<div class="post-metadata">

**Author:** ![izabelarokita](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/izabelarokita/32/41812_2.png) [@izabelarokita](https://community.dynatrace.com/u/izabelarokita)\
**Post date:** [December 16, 2025, 1:25pm UTC](https://community.dynatrace.com/t/retrieve-azure-app-credential-expiration-dates-for-secure-access/52169/2 "2025-12-16T13:25:34Z")

</div>

Hey&nbsp;[@JeanBlanc](https://community.dynatrace.com/user/48146)&nbsp;,  
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!&nbsp;:blush:  
Please let me know what works best for you.

---

<div class="post-metadata">

**Author:** ![JeanBlanc](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jeanblanc/32/25897_2.png) [@JeanBlanc](https://community.dynatrace.com/u/JeanBlanc)\
**Post date:** [December 17, 2025, 3:32pm UTC](https://community.dynatrace.com/t/retrieve-azure-app-credential-expiration-dates-for-secure-access/52169/3 "2025-12-17T15:32:16Z")

</div>

Hi&nbsp;[@IzabelaRokita](https://community.dynatrace.com/user/67399),

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

Best,

---

<div class="post-metadata">

**Author:** ![izabelarokita](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/izabelarokita/32/41812_2.png) [@izabelarokita](https://community.dynatrace.com/u/izabelarokita)\
**Post date:** [December 18, 2025, 10:24am UTC](https://community.dynatrace.com/t/retrieve-azure-app-credential-expiration-dates-for-secure-access/52169/4 "2025-12-18T10:24:52Z")

</div>

Amazing&nbsp;[@JeanBlanc](https://community.dynatrace.com/user/48146)&nbsp;, congratulations on finding & implementing the right solution and sharing the details with our Community! Much appreciated 😊

---

<div class="post-metadata">

**Author:** ![Mattw1](https://avatars.discourse-cdn.com/v4/letter/m/ac91a4/32.png) [@Mattw1](https://community.dynatrace.com/u/Mattw1)\
**Post date:** [February 19, 2026, 12:10pm UTC](https://community.dynatrace.com/t/retrieve-azure-app-credential-expiration-dates-for-secure-access/52169/5 "2026-02-19T12:10:55Z")

</div>

Hi&nbsp;[@JeanBlanc](https://community.dynatrace.com/user/48146),

We are looking to implement the same. Would you be able to provide further details on how you implemented this?

Thanks,

---

<div class="post-metadata">

**Author:** ![JeanBlanc](https://dub1.discourse-cdn.com/dynatrace/user_avatar/community.dynatrace.com/jeanblanc/32/25897_2.png) [@JeanBlanc](https://community.dynatrace.com/u/JeanBlanc)\
**Post date:** [February 23, 2026, 8:47am UTC](https://community.dynatrace.com/t/retrieve-azure-app-credential-expiration-dates-for-secure-access/52169/6 "2026-02-23T08:47:51Z")

</div>

Hi&nbsp;[@Mattw1](https://community.dynatrace.com/user/83932)&nbsp;— happy to share the high-level approach.

**Overall architecture:**

1. A scheduled **PowerShell script** runs on a runner (VM/automation host).
2. The script queries **Microsoft Graph** to retrieve App Registrations / Service Principals and their **credential expiration dates** (secrets/certs).
3. It generates a **status log** (expired / expiring soon / valid + metadata like app name/id and expiry date).
4. The log is shipped into Dynatrace via **Dynatrace Log Monitoring / Log ingest**.
5. 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.

**Simple Diagram:** &nbsp;

 ![Capture d’écran du 2026-02-23 09-39-00.png](https://global.discourse-cdn.com/dynatrace/original/3X/3/5/35d8f5ee1eaf47fac865edf7ec0884d93cee1795.png)

Best regards,
