Share via

issue for renewing secret key of app registraion

Joby Chacko 0 Reputation points
2026-02-11T04:33:42.49+00:00

"A configuration issue is preventing authentication - check the error message from the server for details. You can modify the configuration in the application registration portal. See https://aka.ms/msal-net-invalid-client for details.  Original exception: AADSTS7000215: Invalid client secret provided. Ensure the secret being sent in the request is the client secret value, not the client secret ID, for a secret added to app '35659fb7-8342-4495-a252-33328b735a7d'. Trace ID: bab89f85-6272-4a5f-91c9-5c1f4f740b00 Correlation ID: 76e96f96-e36a-4c43-b0a7-36676e4f6ff4 Timestamp: 2026-02-11 04:12:27Z"

Microsoft Security | Microsoft Entra | Microsoft Entra ID
{count} votes

2 answers

Sort by: Most helpful
  1. Joby Chacko 0 Reputation points
    2026-02-12T15:47:28.0066667+00:00

    This problem has been solved. We updated the secret key in the coding and app environment variables value

    0 comments No comments

  2. Sridevi Machavarapu 22,705 Reputation points Microsoft External Staff Moderator
    2026-02-11T04:45:28.9766667+00:00

    Hello Joby Chacko,

    Thank you for the update, and I’m glad to hear the issue has been resolved.

    The error AADSTS7000215: Invalid client secret provided usually occurs when the application is still using an old or incorrect client secret. After creating a new client secret in the App Registration, it is important to update the client secret value (not the secret ID) in all places where the application uses it, such as:

    • Application configuration files (for example: appsettings.json, web.config, or environment variables)
    • Azure services like App Service, Function Apps, Automation Accounts, etc.
    • Any secure storage like Azure Key Vault, if used

    Also, make sure to restart the application or service after updating the secret so the new value is picked up.

    As you confirmed, updating the secret in both the code and environment variables resolved the issue. This indicates the application was previously using the old secret value.

    If you have any further questions, feel free to reach out.

    0 comments No comments

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.