In this step you will register a new application on Azure with appropriate permissions, create client secrets and gather information in your notepad for the next steps.
1. Create the application
- In the Azure portal home screen, open the side menu and click Microsoft Entra ID.  
- Now, from the side menu click Manage > App registration. 
 The App registration menu opens.
- From the upper menu, click New registration.  
 The Register an application window opens.
- Under the Name field, enter a descriptive name. 
- Under the Redirect URI section, select Web platform and paste http://localhost:5110 in the URL field.  
- Click Register. 
 The application window opens.
2. provide API permissions
- From the side menu, click API permissions > + Add a permission.  
 The Request API permissions panel opens.
- Scroll down to locate the Office 365 Management APIs tile and click on it.  
- Select the Delegated permissions type and check all permission checkboxes.  
- Now select the Application permissions type and check all permission checkboxes.  
- Click Add permissions to close the panel and return to the application window. 
- Click Grant admin consent for directory to grant admin permissions. 
3. Create client secret
- From the side menu, click Certificates & secrets. 
- Click New client secret to open the client secret panel.  
- In the Description field, enter a descriptive title. 
- From the Expires dropdown list, select 24 months. 
- Click Add to add the secret.  
 The secret now appears under the Client secrets list.
- Copy the client secret Value and Secret ID to a notepad for later use.  
❗️IMPORTANT
After a while, the client secret value will be hidden from view and you will not be able to retrieve it again.
4. Retrieve Tenant ID and Application ID
- From the side menu, click Overview. 
- Locate the Application (client) ID and Directory (tenant) ID. .png?sv=2022-11-02&spr=https&st=2025-10-31T17%3A25%3A07Z&se=2025-10-31T17%3A36%3A07Z&sr=c&sp=r&sig=oGQZ6NoPYygh3oAE62aGbW3opUC4YEIJkidSaOTWZJI%3D) 
- Copy and paste these values into a notepad for later use.