Microsoft Defender for Endpoint( invalid license, missing consent

16557136 21 Reputation points
2022-12-05T05:10:37.07+00:00

Hi, I am enabling data connection on sentinel using bicep deployment. I created new tenant and subscription. first time on the deployment I am facing belwo issue.
267031-image.png

when I go to sentinel and check I am all the permissions,
266949-image.png

once I enable the endpoint data connector manually and deleted the Resource Gorup(workspace and sentinel) and then I deployed bicep deployment giving different name for resource group and workspace. my deployment got succeeded.
I am not able to find which setting or configuration is getting enabled when I enabled data connector manually for all successors bicep automations deployments.

Microsoft Sentinel
Microsoft Sentinel
A scalable, cloud-native solution for security information event management and security orchestration automated response. Previously known as Azure Sentinel.
1,275 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Catherine Kyalo 1,540 Reputation points Microsoft Employee
    2024-02-14T08:45:25.42+00:00

    The error message "Invalid license, missing consent" often indicates that you have not given the appropriate permissions to your application or you have not accepted the necessary consent.

    When you're enabling the Microsoft Defender for Endpoint data connector, you need to grant Azure Sentinel reader permissions over the Microsoft Defender for Endpoint data. You can do this by adding Azure Sentinel as a reader on the Microsoft Defender Security Center. Here are the steps that you need to follow:

    1. In the Defender Security Center, go to Settings > Permissions > (API) Azure Sentinel
    2. Click on "Add Azure Sentinel". This will open the Azure portal.
    3. Select the Azure Sentinel workspace that you want to connect.
    4. Click "Add".

    If you already did this and you're still having issues, it's possible that you need to accept the consent on behalf of your organization. You can do this by following these steps:

    1. Open the Azure portal.
    2. Go to Azure Active Directory > App registrations.
    3. Select your application.
    4. Click on "API permissions".
    5. Click on "Grant admin consent for (your organization)".

    Please refer to the following documents for more information:


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.