AADSTS7000222: The provided client secret keys are expired

Viewed 23018

Am using Azuredevops & Azure cloud, my deployment got failed with this error AADSTS7000222: The provided client secret keys are expired. Am not sure where to check this , can someone help me on this?

3 Answers

Check the error code here:

https://docs.microsoft.com/en-us/azure/active-directory/develop/reference-aadsts-error-codes

AADSTS7000222: InvalidClientSecretExpiredKeysProvided - The provided client secret keys are expired. Visit the Azure portal to create new keys for your app, or consider using certificate credentials for added security: https://aka.ms/certCreds

Assuming you got the error from pipeline during deployment. Check the service connection you use and update the key or create a new service connection.

The error AADSTS7000222 occurs when you need to update an expired client secret for a service connection in Azure DevOps. The steps to do this are outlined in the Microsoft docs.

  1. Go to Project settings > Service connections, and then select the service connection you want to modify.

  2. Select Edit in the upper-right corner, and then make any change to your service connection. The easiest and recommended change is to add a description.

  3. Select Save to save the service connection. Don't try to verify the service connection at this step.

  4. Exit the service connection edit window, and then refresh the service connections page.

  5. Select Edit in the upper-right corner, and now select Verify.

  6. Select Save to save your service connection.

Related