> ## Documentation Index
> Fetch the complete documentation index at: https://docs.plerion.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Getting started with Microsoft Entra ID

> Integrate Plerion with Microsoft Entra ID to securely connect subscriptions and enable continuous scanning.

With the [Microsoft Entra ID integration](https://app.plerion.com/settings/integrations/add/Azure/AzureActiveDirectory), you can connect your Azure tenant to Plerion. This enables onboarding of Azure subscriptions for **Cloud Security Posture Management (CSPM)** and other security capabilities.

***

> [!TIP]
>
> For a smoother onboarding experience, log in to your **Microsoft Entra ID** using the Azure Portal before starting the setup in Plerion.

## Steps to add a Microsoft Entra ID integration

**1. On the Plerion dashboard, go to Settings > Integrations**

![Sidebar navigation with Settings expanded and Integrations highlighted](https://mintcdn.com/pleriondocs/rDG914-TLqofr4Lz/images/integrations/azure/settings-integrations-sidenav.png?fit=max\&auto=format\&n=rDG914-TLqofr4Lz\&q=85\&s=0b7e0fb073ae7b9dfc04066a54acbf87)

**2. Find Microsoft Entra ID and click the + button**

![Integrations page with Microsoft Entra ID option and plus button to add integration](https://mintcdn.com/pleriondocs/MF2bvvHG-saj_wNo/images/integrations/azure/add-azure-ad.png?fit=max\&auto=format\&n=MF2bvvHG-saj_wNo\&q=85\&s=91884d7ff50ebcd7e8d0bf8e0b48cb28)

**3. Create a new app registration in Azure**

* Follow the instructions provided on the Connect Microsoft Entra ID page to register an app in Azure.
* Give the app registration these Microsoft Graph **Application permissions**, then select **Grant admin consent**:
  * `AuditLog.Read.All` reads sign-in activity and the authentication methods registration report.
  * `Directory.Read.All` reads users, groups, roles, applications, service principals, domains and directory settings.
  * `Policy.Read.All` reads directory policies: security defaults, conditional access policies and named locations, the authentication methods policy, the authorization policy (user consent, guest and default user permissions), the admin consent request policy and the device registration policy.

![API permissions page of the app registration in the Azure portal, with AuditLog.Read.All, Directory.Read.All and Policy.Read.All granted](https://mintcdn.com/pleriondocs/WgbyFuXWoU4_Ri6j/images/integrations/azure/app-api-permissions.png?fit=max\&auto=format\&n=WgbyFuXWoU4_Ri6j\&q=85\&s=c9825ccd80e03fad5cce9c190decba24)

**4. Enter application details in Plerion**

* Provide the **Application ID**, **Directory ID**, and **Client Secret** from the Azure App registration.
* Then click `Add`.

![Fields for entering Microsoft Entra ID details in Plerion](https://mintcdn.com/pleriondocs/rDG914-TLqofr4Lz/images/integrations/azure/enter-azure-ad-application-details.png?fit=max\&auto=format\&n=rDG914-TLqofr4Lz\&q=85\&s=a272f98ca56ce5e2ae49394cbf2a2876)

![CFields for entering Microsoft Entra ID client secret in Plerion](https://mintcdn.com/pleriondocs/rDG914-TLqofr4Lz/images/integrations/azure/enter-azure-ad-secret.png?fit=max\&auto=format\&n=rDG914-TLqofr4Lz\&q=85\&s=f5005d361aa43e743ae24b96b5294234)

**5. Add Azure subscriptions linked to the directory**

After Microsoft Entra ID is connected, you will be prompted to add subscriptions linked to that directory.

![Prompt to add Azure subscriptions linked to the directory](https://mintcdn.com/pleriondocs/rDG914-TLqofr4Lz/images/integrations/azure/Add-Azure-AD-integration-addazuresubscription1.png?fit=max\&auto=format\&n=rDG914-TLqofr4Lz\&q=85\&s=87eff31e85666499b9b9e0fd4f3c6943)

**6. Grant the app registration subscription access**

Provide the app registration with access to each subscription, using either the Azure CLI or Azure Portal as instructed.

**7. Add extra permissions (optional)**

You may assign additional permissions if required for advanced use cases. To collect Microsoft Foundry agents and memory stores, add the [Foundry agent role](https://docs.plerion.com/guides/integrations/azure/setting-up-azure-subscription.md#microsoft-foundry-agent-role-optional).

![Optional subscription permissions configuration](https://mintcdn.com/pleriondocs/rDG914-TLqofr4Lz/images/integrations/azure/Add-Azure-AD-integration-addazuresubscriptionpermissions1.png?fit=max\&auto=format\&n=rDG914-TLqofr4Lz\&q=85\&s=6b7db4b438a066a4eea77f30f0094220)

![Additional permission options in Azure portal](https://mintcdn.com/pleriondocs/rDG914-TLqofr4Lz/images/integrations/azure/Add-Azure-AD-integration-addazuresubscriptionpermissions2.png?fit=max\&auto=format\&n=rDG914-TLqofr4Lz\&q=85\&s=c9d2648ebe8da6699ab3f53df872af1d)

**8. Verify access to subscriptions**

* Click `Verify access` to confirm that subscriptions are correctly configured.
* Plerion will display all subscriptions available based on the permissions provided.

![Verification screen showing Azure subscriptions added successfully](https://mintcdn.com/pleriondocs/rDG914-TLqofr4Lz/images/integrations/azure/Add-Azure-AD-integration-addazuresubscriptionverifyaccess.png?fit=max\&auto=format\&n=rDG914-TLqofr4Lz\&q=85\&s=eb84bc8a18e9d8e118d64c69d86aa3df)

**9. Add subscriptions to Plerion**

* Select the subscriptions you want to add and click `Add subscriptions`.
* These subscriptions will now be available in your tenant for scanning.

![Subscriptions successfully added to Plerion](https://mintcdn.com/pleriondocs/rDG914-TLqofr4Lz/images/integrations/azure/Add-Azure-AD-integration-addazuresubscriptionverifyaccess.png?fit=max\&auto=format\&n=rDG914-TLqofr4Lz\&q=85\&s=eb84bc8a18e9d8e118d64c69d86aa3df)

***

## Add the Policy.Read.All permission to an existing integration

If you connected Microsoft Entra ID before `Policy.Read.All` was required, add the permission once. Until you do, detections that check directory policies give no result. Nothing else stops working. Granting admin consent needs the Privileged Role Administrator or Global Administrator role.

> [tab] Microsoft Entra admin center
>
> **1. Open the app registration**
>
> In the Microsoft Entra admin center, go to **App registrations** and open the app registration used by your Plerion integration.
>
> **2. Add the permission**
>
> Go to **API permissions** > **Add a permission** > **Microsoft Graph** > **Application permissions**, then select `Policy.Read.All` and click **Add permissions**.
>
> **3. Grant admin consent**
>
> Click **Grant admin consent** for your directory and confirm. Each permission then shows **Granted** in the **Status** column.
>
> ![API permissions page with Policy.Read.All added and admin consent granted](https://mintcdn.com/pleriondocs/WgbyFuXWoU4_Ri6j/images/integrations/azure/app-api-permissions.png?fit=max\&auto=format\&n=WgbyFuXWoU4_Ri6j\&q=85\&s=c9825ccd80e03fad5cce9c190decba24)

> [tab] Azure CLI
>
> Replace `<application-client-id>` with the Application ID of the app registration.
>
> ```bash theme={"system"}
> az ad app permission add --id <application-client-id> --api 00000003-0000-0000-c000-000000000000 --api-permissions 246dd0d5-5bd0-4def-940b-0421030a5b68=Role
> az ad app permission admin-consent --id <application-client-id>
> ```

The next scan picks up the permission. You don't need to change anything in Plerion.


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.