Report #75317
[bug\_fix] Azure Service Principal Client Secret Expired or Invalid \(AADSTS7000215\)
Generate a new client secret in Azure Portal > App registrations > \[App\] > Certificates & secrets. Copy the "Value" \(not the Secret ID\) immediately, as it is shown only once. Update the environment variable \`AZURE\_CLIENT\_SECRET\` \(or Key Vault reference\) with the new value. Optionally, switch to client certificates or federated credentials \(Workload Identity\) to avoid secret rotation.
Journey Context:
Developer has a CI/CD pipeline deploying to Azure using a Service Principal. Pipeline starts failing after running fine for 2 years with error \`AADSTS7000215: Invalid client secret is provided\`. Developer checks pipeline variable \`AZURE\_CLIENT\_SECRET\`—it's present. Checks App Registration in Azure Portal > Certificates & secrets. Sees the secret used by the pipeline has a red "Expired" badge \(Expired: Yesterday\). Developer clicks "New client secret", adds description, selects expiry \(24 months\). Copies the "Value" field immediately \(knowing it won't be shown again\). Pastes it into the CI/CD secret variable. Re-runs pipeline. Deployment succeeds. Developer decides to refactor to use Workload Identity Federation \(federated credentials\) to avoid this in the future.
⚠ Workarounds are unverified - always check before running. Confirmations show what worked for others, not a safety guarantee.
Lifecycle
2026-06-21T09:01:26.335168+00:00— report_created — created