> For the complete documentation index, see [llms.txt](https://docs.octoxlabs.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.octoxlabs.com/adapters/m/microsoft-azure-enterprise-applications.md).

# Microsoft Azure Enterprise Applications

Enterprise Applications are the service principals in your Microsoft Entra tenant. OctoXLabs reads them through Microsoft Graph as services and reads the public SSO certificates of each service principal to track certificate expiry.

## Use cases

* **Find expired or expiring SSO certificates.** Filter the certificate assets from this adapter by their expiry date.

```
Adapters = azure-enterprise-applications
```

* **Review the enterprise applications in the tenant.** Filter the service assets by the adapter name and review their type.
* **Check what one connection collected.**

```
Connections = YOUR_CONNECTION_NAME
```

## Before you begin

### Network

| Source              | Destination               | Port | Protocol |
| ------------------- | ------------------------- | ---- | -------- |
| OctoXLabs connector | login.microsoftonline.com | 443  | HTTPS    |
| OctoXLabs connector | graph.microsoft.com       | 443  | HTTPS    |

If a proxy is set, requests go through it.

### Required permissions

| Scope or role                 | Permission                                 | Needed for                                           |
| ----------------------------- | ------------------------------------------ | ---------------------------------------------------- |
| Microsoft Graph (Application) | Application.Read.All or Directory.Read.All | Reading service principals and their key credentials |

Grant admin consent after you add the permission (baseline).

## Create credentials in Microsoft Entra

{% stepper %}
{% step %}

### Open the app registration

In the Azure portal, open **Microsoft Entra ID > App registrations** and select the application for Graph access, or create one.
{% endstep %}

{% step %}

### Add the permission

Under **API permissions**, click **Add a permission**, choose **Microsoft Graph > Application permissions** and add **Application.Read.All** or **Directory.Read.All**.
{% endstep %}

{% step %}

### Grant admin consent

Click **Grant admin consent for** .
{% endstep %}

{% step %}

### Create a client secret

Create a client secret for the application and copy its value.
{% endstep %}

{% step %}

### Note the IDs

Copy the Application (client) ID and the Directory (tenant) ID. The tenant ID is on **Microsoft Entra ID > Overview**.
{% endstep %}
{% endstepper %}

## Connection parameters

| Parameter     | Required | Type    | Default | Description                                                                                  |
| ------------- | -------- | ------- | ------- | -------------------------------------------------------------------------------------------- |
| Client ID     | Yes      | String  | None    | Application (client) ID.                                                                     |
| Client Secret | Yes      | String  | None    | Client secret value.                                                                         |
| Tenant ID     | Yes      | String  | None    | Directory (tenant) ID.                                                                       |
| Proxy URL     | No       | String  | None    | Proxy address, used as `http://<value>` for HTTP and HTTPS.                                  |
| Timeout       | No       | Integer | 30      | Seconds to wait for an API response.                                                         |
| Thread Count  | No       | Integer | 32      | Parallel threads for certificate requests. Minimum 1, maximum 32.                            |
| Sleep Time    | No       | Integer | None    | Seconds to wait between threads. A higher value lowers resource use and lengthens discovery. |

## Troubleshooting

| Error message                                                  | Cause                                                                                  | Fix                                                       |
| -------------------------------------------------------------- | -------------------------------------------------------------------------------------- | --------------------------------------------------------- |
| Status Code: `, followed by URL, Method and the response body` | Microsoft answered with an unexpected status. This is the shared REST connector error. | Check the tenant ID, client ID, secret and admin consent. |

## Change history

{% hint style="info" %}
Available starting from version 5.6.7.
{% endhint %}
