Azure

Know before an app registration secret expires

DoubleCheck reads the client secrets and certificates of every app registration in your tenant once a day, and warns you weeks before one expires, not on the morning the integration stops.

The problem

Client secrets have an end date, at most two years after they are made. Nobody is told when that date comes: the app simply stops signing in.

The integration that breaks is often one nobody has touched for a year: a sync with the HR system, a mail relay, a backup tool, a customer portal. The first sign is a ticket from a user.

Why it matters

Renewing a secret takes minutes when you see it coming. When it has expired you also have to find out which app it was, who owns it and where the new value must go, while something is down.

Old secrets that were replaced but never removed stay on the app until they expire. They are a risk of their own, and a reason to clean up.

How to check it manually

In the Microsoft Entra admin center, open App registrations, choose All applications, and open Certificates & secrets of each app to see the expiry dates.

With Microsoft Graph PowerShell you can list them for all apps at once:

Connect-MgGraph -Scopes Application.Read.All
Get-MgApplication -All -Property DisplayName,AppId,PasswordCredentials,KeyCredentials |
  ForEach-Object { $app = $_; @($_.PasswordCredentials) + @($_.KeyCredentials) |
    Select-Object @{n='App'; e={$app.DisplayName}}, DisplayName, EndDateTime } |
  Sort-Object EndDateTime

Anything with an EndDateTime in the next few weeks needs a new secret or certificate.

How DoubleCheck checks it

Once a day DoubleCheck reads every client secret and certificate of every app registration in your tenant from Microsoft Graph and works out how many days each one has left.

A secret or certificate that expires within the warning level (30 days by default) puts the check in warning. Within the error level (7 days) or already expired, it is an error. The alert names the apps, for example "Portal (secret, expired)".

When you renew a secret, the old one often stays on the app until it expires. With one setting the check skips an expired secret or certificate when its app still has a valid one.

App registration credentials Error
Azure · contoso.onmicrosoft.com
● 1 expired, 1 within 7 days
1expired
1within 7 days
1within 30 days
Secrets and certificates soonest first
Backup agentSecret · old keyexpired
HR syncCertificate · CN=hr-sync5 days
Customer portalSecret · prod24 days
IntranetCertificate · CN=intranet211 days
ReportingSecret · Xyz...346 days
Sample data. Every client secret and certificate of every app registration, counted as expired, within the error level or within the warning level, soonest first.
Measures
The client secrets and certificates of every app registration in your tenant, from Microsoft Graph (/applications): per secret or certificate the days until it expires. The score is the number that expire within the warning level or have expired. A secret or certificate without an end date never expires and is not counted.
Runs
Once a day by default
Status
  • Higher is better.
  • Warning when the days left of a secret or certificate is below 30 days (default advice).
  • Error when the days left of a secret or certificate is below 7 days (default advice).
  • You can change the levels per check.
What you need
  • An app registration in your tenant with a client secret.
  • Microsoft Graph application permission Application.Read.All, with admin consent. Read only.
FAQ

Frequently asked questions

Which permission does DoubleCheck need?

The Microsoft Graph application permission Application.Read.All, approved by a Global Administrator or Privileged Role Administrator. It only reads the app registrations.

Does DoubleCheck see my secrets?

No. Microsoft Graph never returns the value of a secret, only its name, its first three characters and its end date. That is all DoubleCheck sees and stores.

Does it check the app registration DoubleCheck itself uses?

Yes. Every app registration in the tenant is included, so you are also warned before the secret DoubleCheck signs in with expires.

Can DoubleCheck renew a secret for me?

No. It only reads. You make the new secret or certificate in the Entra admin center and put it where the app needs it.

What happens when the permission is missing?

The check goes into error with a message that names the missing permission. It tries again once a day; after you add the permission you can run it at once from the check page.

How are my credentials stored?

The tenant ID, application ID and client secret are kept in a dedicated, encrypted secrets vault, separate from the DoubleCheck database. Access to it is restricted to DoubleCheck's own services under strict access policies.

Get started

Start monitoring with DoubleCheck

Start with €5 of free credit, no credit card required. Alerts by email, SMS, Slack, Microsoft Teams or Discord.

Start monitoring