Before Azure Log Connector can collect data from your Azure and Microsoft 365 environment, you must create a dedicated App Registration in the Azure Portal. This article walks through the complete setup process step by step.
Before you begin:
Confirm the following:
- You have access to the Azure Portal with Global Administrator or Application Administrator privileges
- You have a secure location ready to store the Client Secret value โ it is only shown once
- You have completed the prerequisites checklist in the Prerequisites for Azure Log Connector article
Step 1 โ Create the App Registration:
- Sign in to the Azure Portal
- In the search bar, type Microsoft Entra ID and select it
- In the left navigation menu, click App Registrations
- Click New Registration
- Configure the registration:
- Name โ enter LT Auditor MP Azure Log Collector
- Supported Account Types โ select Accounts in this organizational directory only (Single Tenant)
- Redirect URI โ leave blank
- Click Register
Step 2 โ Record your Tenant ID and Client ID:
On the App Registration overview page, locate and copy the following values:
| Value | Field Name in Azure Portal |
| Client ID | Application (client) ID |
| Tenant ID | Directory (tenant) ID |
Store these securely โ you will need them during the Azure Log Connector configuration step.
Step 3 โ Configure API permissions:
- In the left navigation menu, click API Permissions
- Click Add a Permission
Add Microsoft Graph permissions:
- Select Microsoft Graph
- Select Application Permissions
- Search for and add each of the following permissions:
| Permission |
| AuditLog.Read.All |
| Directory.Read.All |
| Application.Read.All |
| Domain.Read.All |
| Files.Read.All |
| GroupMember.Read.All |
| IdentityProvider.Read.All |
| IdentityRiskyServicePrincipal.Read.All |
| IdentityRiskyUser.Read.All |
| Policy.Read.All |
| RoleManagementAlert.Read.Directory |
| User.Export.All |
| User.Read.All |
| UserAuthenticationMethod.Read.All |
- Click Add Permissions
Add Office 365 Management API permission:
- Click Add a Permission again
- Select Office 365 Management APIs
- Select Application Permissions
- Add the following permission:
| Permission |
| ActivityFeed.Read |
- Click Add Permissions
After adding all permissions, the API Permissions page will list all 15 permissions with a status of Not granted.
Step 4 โ Grant Admin Consent:
All application permissions require Admin Consent from a Global Administrator before they become active.
- On the API Permissions page, click Grant admin consent for [Your Organization Name]
- Click Yes to confirm
- Confirm all 15 permissions update to show a green checkmark and status of Granted for [Your Organization Name]
If the Grant admin consent button is greyed out, you do not have sufficient privileges. Contact your Global Administrator to complete this step.
Step 5 โ Create a Client Secret:
- In the left navigation menu, click Certificates & Secrets
- Click New Client Secret
- Configure the secret:
- Description โ enter LT Auditor MP Collector
- Expires โ select an expiration period (recommended: 24 months)
- Click Add
Copy the secret Value immediately. It is only displayed once. If you navigate away before copying it, you will need to delete the secret and create a new one.
Store the Client Secret securely alongside the Tenant ID and Client ID recorded in Step 2.
Step 6 โ Verify the App Registration:
Before proceeding to installation, confirm the following:
- The application name shows as LT Auditor MP Azure Log Collector
- The Application (client) ID and Directory (tenant) ID are recorded
- All 15 API permissions are listed and show status Granted
- All permissions are listed as Application type โ not Delegated
- The client secret is listed with a future expiry date and the value has been copied and stored
Managing secret expiry:
Client secrets expire based on the duration selected at creation. To avoid service interruptions:
- Note the secret expiry date and set a reminder 30 days before it expires
- When renewal is needed, generate a new secret in Certificates & Secrets, update the Azure Log Connector configuration with the new value, and delete the old secret
[Your administrator should document the secret expiry date and assign ownership of the renewal process to ensure Azure Log Connector is not interrupted by an expired secret.]
Summary of values to retain:
| Value | Description |
| Application (Client) ID | Unique identifier for the App Registration |
| Directory (Tenant) ID | Unique identifier for your Entra ID tenant |
| Client Secret Value | Secret used to authenticate the App Registration |
| Secret Expiry Date | Date the client secret expires โ for renewal planning |