Steps
Open the Microsoft Entra admin center: https://entra.microsoft.com
Go to Applications.
Select the App registrations tab.
The App registrations tab opens.App registrations page in Microsoft Entra admin center
Select the entry of your app registration.
The Overview tab of your app registration opens.Registered app in Microsoft Entra admin center
Select the Certificates & secrets tab.
The Certificates & secrets tab for your app opens.Certificates & secrets tab
Select the New client secret button.
The Add a client secret form opens.Add a client secret form
In the Description text field enter a name for the client secret.
In the Expires section select the desired option.
Note
We recommend In 2 years.
It is best practice to setup a reminder when the client secret will expire. That way you can create a new client secret and replace an old one before it expires.Select the Add button.
The new client secret entry is shown.New client secret entry in the Certificates & secrets tab in the Entra ID admin center
Copy the Value entry of the newly created client secret entry to another file, e.g. a Microsoft Excel config file.
Important
Do not skip this step as this value will be hidden after performing another operation or leaving this tab, and you will not be able to retrieve it again!
Note
When working with an Microsoft Excel config file, we recommend encrypting the values of the client key by using the dox42 Crypto Data source.
Result
You have added a client secret to your app registration.