Step 1: Navigate to the Microsoft Azure website by clicking the following link. Sign into your Microsoft Azure account.
Step 2 Navigate through the following menus to add a new registration
- On the "Manage Microsoft Entra ID" section click the "View" button.
- Go to "Manage" - "App registrations" - "New registration"
- Provide a name and select "Single Tenant". Do not enter a redirect URI
- Take note of the Application ID (Client ID) and Directory ID (Tenant ID)
- Click "Add a Certificate or Secret"
- Click "New client secrets" and add a Description. Next choose an expiry timeline up to 2 years. Take note of Secret as it will not be viewable later. (Note this process will have to be repeated at the end of the expiry timeline.)
- On the left menu select "API permissions", click "Add a permission" and then Microsoft Graph.
- Click "Application permissions". Inside the "Select permissions" scroll down to the "Mail" dropdown list and select "Mail.Read" and "Mail.Send". "Add permissions"
- Finally click "Grant admin consent for 'name'" and select "Yes".