Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Content

Table of Contents
maxLevel6
minLevel1
include
outlinefalse
indent
excludeContent
typelist
printablefalse
class

...

How to renew the client secret (For application permission)

Expand

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 in the Microsoft Azure / Entra ID portal and click on Certificates certificates & secrets :

  1. Delete the old one:

  2. Generate a new one by clicking on the button:

     

Info

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)

  1. Next, make sure to carefully copy the key value and replace it with the old one:

...