- Print
- DarkLight
Microsoft Sentinel (formerly Azure Sentinel) is a cloud-native security information and event management (SIEM) service that provides intelligent security analytics and threat detection across the enterprise, integrating with Microsoft and third-party security solutions.
Setup and Configure
Log on to Azure with a user account that has the Global Administrator role.
Navigate to Microsoft Entra ID > App registrations > New registration. The "Register an application" page will appear. (If you have an existing application, you can also use that.)
Enter the application's registration information (If you are creating a new application):
In the ‘Name’ section, enter a meaningful application name that will be displayed to users.
For ‘Supported account types’, click the Accounts in any organizational directory option.
Set the ‘Redirect URI’ to http://localhost.
Click on Register to create the application.
On the app “Overview” page, copy the Application (client) ID and Directory (tenant) ID for later use.
Add Endpoint Access
To access the incidents and its related alerts data, you must grant the permission: ThreatIndicators.Read.All.
Endpoints needed for Microsoft Sentinel
Add Permissions
To add the permission, you must follow the below steps:
Select the application whose logs are to be accessed (the application registered earlier on this page).
Click API Permissions, and then click Add a Permission. The “Request API permissions” window appears.
Click on Microsoft Graph.
Click on Application Permissions and search for ThreatIndicators, then grant ThreatIndicators.Read.All permission.
Click the Add permissions button after selecting all required permissions.
On the “API permissions” page, click Grant Admin Consent for <tenant>.
Click the Yes button on the consent confirmation. The required permissions are now added for the endpoint
Create the Client ID and Client Secret
The last step in configuring the Graph API is creating a Client ID and Client Secret. To create these items, from the Azure Portal:
Select the application created above.
Click Certificates & secrets, and then Client secrets.
Click New client secret. The “Add a client secret” window appears.
Enter a Description for this client secret.
Select the desired expiry period from the ‘Expires’ drop-list.
Click Add.
Copy the Value field, which will be used to initialize the beat.
Create Resource Group and Workspace
Search for Microsoft Sentinel.
Select an existing resource group or create a new resource group using the Create button.
Now, select a workspace or create a new workspace using the Create button.
Select a subscription and add the resource group. If you need to create a new resource group, click the Create New button. Once you have added all the necessary details, click on Review + Create.
Add Access to the Application to retrieve the data
To grant access to data for an application, we need to assign a role to the application. To give the application access to a resource group, we must open the resource group and navigate to Access Control. Please click on reference to know more.
After navigating into access control, click on the Add button to add the role.
Select Reader role from the list and click on the Next button.
Now, select members from the Select Members screen. After making your selection, you will see the selected members appear in the Selected Members list.
Once you select the member click on the Review + assign button.
Get Resource Group and Workspace
Go to Microsoft Sentinel and select an existing one or use the previous steps to create a new workspace group.
After Selecting workspace go to Settings > Workspace settings.
You will see the screen below. We have the workspace name, resource group name, and subscription ID in that.
Replace the workspace name, resource group, and subscription ID in the URL below.
https://management.azure.com/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.OperationalInsights/workspaces/{workspaceName}/providers/Microsoft.SecurityInsights/incidents?api-version=2024-03-01