Entra app credential guides
Fix an AADSTS error, renew an expiring secret or certificate, and compare the ways to get warned before Microsoft Entra app credentials expire.
Guides
- Identify the active credential
How to see which secret or certificate key id an Entra workload still presents, in the portal or with a Log Analytics query, before you remove the old one.
- Expiry notifications from Microsoft
Which expiry emails Microsoft Entra sends for app registration secrets and certificates, who receives them, and how to get a warning on your own schedule.
- Monitor credential expiry
Build a scheduled check of Entra app registration and service principal secret and certificate expiry dates with Microsoft Graph and Azure Monitor alerts.
- AppAlert vs. custom script
Compare a custom credential expiry script with AppAlert for setup, maintenance, coverage, owner routing, notification records and cost.
- Agent blueprint credentials
Find agent identity blueprint credentials in Entra and Microsoft Graph. Check secret and certificate expiry dates and review federated credential trust.
Error codes
- AADSTS50003 SAML signing key
AADSTS50003 means Entra found no SAML signing certificate it can use for the app. Create a new certificate, update the application, and activate it.
- AADSTS7000215 invalid secret
AADSTS7000215 means the secret your app sent matches no secret on the app. Check secret ID vs value, the client ID pairing, and deleted secrets first.
- AADSTS7000222 secret expired
AADSTS7000222 means the client secret your app sent has expired. Find which app and which copy of the secret, renew it, and update every consumer.
- AADSTS700027 certificate failed
AADSTS700027 means Entra rejected the app's certificate sign-in. Read the Reason text to tell expired, unregistered, and revoked certificates apart.
- AADSTS7005003 secret revoked
AADSTS7005003 means the client secret your app sent was revoked before its expiry date. Find who revoked it, then replace the secret safely.
Renewal guides
- Application Proxy SSL certificates
Find Entra App Proxy SSL certificates that expire soon and replace the PFX on every existing app with the portal or Microsoft's PowerShell script.
- Azure DevOps service connection
Fix Azure DevOps pipelines that fail when the service connection client secret expires. Rotate the secret or convert to workload identity federation.
- Client authentication certificates
Entra app certificate expired or AADSTS700027? Find certificates that expire soon, renew with Azure CLI --append or Graph addKey, then switch workloads.
- Client secrets
Renew an expired or expiring Entra client secret in the portal, Azure CLI, PowerShell or Graph, update every consumer, then remove the old secret safely.
- Enterprise app secrets
Find client secrets added to Entra enterprise applications, which App registrations does not show, and rotate them with Graph before they expire.
- Microsoft Entra Connect Sync certificate
Entra Connect Sync warns with Event ID 1011 at 70% of the certificate's lifetime. What the warning means, how to check the scheduler, how to rotate.
- Owner has left
Find Entra apps whose listed owner left or is disabled, assign a successor, then renew the expiring secret or certificate before workloads fail.
- Ownerless credentials
Find Entra apps with no owner, see which administrators can renew their secrets or certificates, and follow the renewal path before credentials expire.
- Revoked credentials
AADSTS7005003, 7005004, 7005005 or 7005006 means an Entra app credential was revoked, not expired. Find who revoked it and replace it safely.
- SAML signing certificates
Find Entra SAML signing certificates that expire soon, check expiry emails, and renew with Graph or the portal after the application accepts the new key.