data/authors/Paul Logan.json

Azure App Service - Client Secret expired

Contents

Running our app locally, we received the above AADSTS7000222 error code out of the blue.

Expired client secret shown in the portal.
Expired client secret shown in the portal
Expired client secret shown in the portal.
Expired client secret shown in the portal
Expired client secret shown in the portal.
Expired client secret shown in the portal

Viewing the Certificates & Secrets for the App Service on the Azure portal displayed the expired secret:

Expired client secret shown in the portal.
Expired client secret shown in the portal

Clicking the “New client secret” button, a new secret was easily added:

Adding a new client secret.
Adding a new client secret

The Certificates & secrets listing now shows the expired secret and it’s replacement:

Listing of client secrets.
Listing of client secrets

In the appSettings section of the application config file, replace the ClientSecret value with the new secret ID:

Updated application config file.
Updated application config file