How to renew the client secret
Error Message : ClientSecretCredential authentication failed: A configuration issue is preventing authentication - check the error message from the server for details.
If you receive this error message during the resource connection test, you need to create a new client secret :
Go to your application and click on Certificates & secrets :
Delete the old one:
Generate a new one by clicking on the button:
In graphical mode, you are limited to a maximum of 2 years, as per Microsoft's recommendation. You can use the following command line to extend beyond 2 years (You need to modify the values in bold):
New-AzureADApplicationPasswordCredential -ObjectId YourObjectID -CustomKeyIdentifier Roomz -Value $secret -StartDate (Get-Date) -EndDate (Get-Date).AddYears(5)
Next, make sure to carefully copy the key value and replace it with the old one: