Hi @Rivera Claro, Oscar Javier
Thank you for reaching Microsoft Q&A.
Based on the error (AADSTS7000215) message it indicates that the client secret provided is invalid. Which means that the client secrets you have used is incorrect or expired either in the app registration.
In order to resolve your issue, you'll have to navigate to your Azure AD App Registration, open the Certificate & Secrets menu, and ensure that you're using the correct Secret Value within your App and not the Secret ID.
Since you're using Key Vault, create a secret with a name of your choice in the Key Vault. Then, copy the client secret from the app registration and paste it into the 'value' field of the Key Vault secret.
Ensure that the client secret is not being modified or corrupted during copy-pasting. Sometimes extra spaces or characters can be added while copying the client secret. Validate that the client secret is copied correctly and without any extra characters.
Reference: https://learn.microsoft.com/en-us/windows/msix/desktop/sign-with-akv-cert
https://techcommunity.microsoft.com/t5/microsoft-defender-for-identity/app-secret-application-secret-azure-ad-azure-ad-app-secrets/m-p/3775325
Hope this helps. Do let us know if you any further queries by responding in the comments section.
Thanks,
Akhilesh.
If this answers your query, do click Accept Answer
and Yes
for was this answer helpful. And, if you have any further query do let us know.