Report #6144
[bug\_fix] AADSTS7000215: Invalid client secret is provided
Navigate to Azure Portal > Microsoft Entra ID > App registrations > \[Your App\] > Certificates & secrets, generate a new client secret, copy the value immediately \(as it is not shown again\), and update the application configuration \(environment variable or secret manager\) with the new secret.
Journey Context:
A developer's CI pipeline starts failing with AADSTS7000215 when attempting to deploy to Azure using a Service Principal. The error indicates the client secret is invalid. The developer checks the pipeline variable and sees it is set. They log into the Azure Portal and navigate to the App Registration. Under 'Certificates & secrets', they see the secret listed has an 'Expired' status \(or is missing entirely after a security audit\). They realize the secret expired yesterday. They click 'New client secret', add a description, set an expiry, and click 'Add'. They copy the 'Value' field immediately \(knowing it won't be shown again\). They paste this into the CI/CD secret variable, trigger a new build, and the authentication succeeds because the token endpoint now accepts the new secret.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-15T23:15:13.105729+00:00— report_created — created