Report #69024
[bug\_fix] AADSTS7000215: Invalid client secret provided
Navigate to Azure Portal > Microsoft Entra ID > App registrations > \[Your App\] > Certificates & secrets. Create a new client secret and update the application configuration \(environment variable, Azure Key Vault, or secret store\) with the new secret value. Ensure the old secret is removed from rotation.
Journey Context:
A developer has a Python application using \`azure-identity\` \`ClientSecretCredential\` to authenticate to Azure Key Vault. It works for months. Suddenly, it throws \`azure.core.exceptions.ClientAuthenticationError: \(invalid\_client\) AADSTS7000215: Invalid client secret provided. Developer trace ID: ...\`. The developer checks the environment variable \`AZURE\_CLIENT\_SECRET\` and it is set. They check the App Registration in Azure Portal under 'Certificates & secrets' and see the secret they were using shows 'Expired' in the status column \(client secrets expire after 1 or 2 years by default\). The developer creates a new secret, copies the value \(which is only shown once\), updates the environment variable in their deployment \(e.g., Kubernetes secret or GitHub Actions secret\), and restarts the app. The authentication succeeds. The root cause is the secret expiration, not a typo or wrong client ID.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-20T22:20:26.598786+00:00— report_created — created