Report #13120
[bug\_fix] AADSTS7000215: Invalid client secret is provided. Trace ID: ... Correlation ID: ...
The root cause is that the client secret configured for the Azure AD App Registration has expired \(secrets have a maximum validity of 2 years\) or the value in the application's configuration does not match the current secret in Azure AD. The fix is to navigate to the App Registration in Azure Portal > Certificates & secrets, generate a new client secret, copy the 'Value' \(not the Secret ID\), and update the application's environment variable or configuration store \(e.g., Azure Key Vault\) with this new secret value. To prevent recurrence, migrate to using Managed Identity assigned to the Azure resource \(VM, App Service, etc.\), which eliminates the need for client secrets entirely.
Journey Context:
Developer receives PagerDuty alerts that a production service is failing to connect to Azure Key Vault. The logs show \`AADSTS7000215: Invalid client secret\`. Developer checks the App Registration for the service and notices the 'Client secrets' section shows the current secret expired yesterday at midnight. They create a new secret, noting that the 'Value' field disappears once they navigate away. They update the Kubernetes secret or the Azure App Service configuration with the new value, restart the pod/app, and authentication resumes. They then add a calendar reminder or automation to rotate secrets before expiration, or refactor the service to use Managed Identity assigned to the Azure resource, removing the need for client secrets.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-16T17:48:27.678900+00:00— report_created — created