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

# Connecting Azure

To scan your Azure environment, you need to create a **Service Principal** in Azure Active Directory and provide its credentials to Amnify.

***

## Prerequisites

Before you begin, make sure you have:

* An Azure account with permission to create App Registrations in Azure AD
* At least one Azure subscription you want to scan
* The following values ready:
  * **Tenant ID** — your Azure AD tenant identifier
  * **Application (Client) ID** — from the App Registration
  * **Client Secret** — a secret created for the App Registration

***

## Step 1: Create an App Registration

If you don't already have a Service Principal:

1. Go to **Azure Portal → Azure Active Directory → App registrations**
2. Click **New registration**
3. Name it (e.g., "Amnify Security Scanner")
4. Set the supported account type to **Single tenant**
5. Click **Register**
6. Note the **Application (client) ID** and **Directory (tenant) ID**

***

## Step 2: Create a Client Secret

1. In your App Registration, go to **Certificates & secrets**
2. Click **New client secret**
3. Set a description and expiration
4. Click **Add**
5. Copy the **secret value** immediately — it won't be shown again

***

## Step 3: Assign Permissions

Grant the Service Principal **Reader** access to the subscriptions you want to scan:

1. Go to the subscription in Azure Portal
2. Navigate to **Access control (IAM) → Add role assignment**
3. Select **Reader** role
4. Assign it to your App Registration

<Tip>
  For comprehensive scanning, the **Reader** role is sufficient. Amnify does not require write access to your Azure resources.
</Tip>

***

## Step 4: Add the Integration in Amnify

1. Navigate to **Integrations** and click **Create integration**
2. Select **Azure** as the provider
3. Fill in:
   * **Display Name** (optional) — a friendly label for this connection
   * **Tenant ID** — your Azure AD tenant ID (GUID format)
   * **Application ID** — the App Registration client ID (GUID format)
   * **Client Secret** — the secret value you copied earlier
4. Click **Next**
5. Amnify discovers your subscriptions — toggle on the ones you want to scan
6. Click **Finish**

***

## What Happens Next

Once connected, you can:

* [Run a scan](/cspm-deploy/security/scan-scheduling) against your Azure subscriptions
* [Set up a schedule](/cspm-deploy/security/scan-scheduling#creating-a-schedule) for automatic scanning
* View results on the [Dashboard](/cspm-deploy/security/dashboard)

***

## Troubleshooting

| Issue                       | Cause                                 | Solution                                                     |
| --------------------------- | ------------------------------------- | ------------------------------------------------------------ |
| No subscriptions discovered | Service Principal lacks Reader access | Assign Reader role on target subscriptions                   |
| Authentication failed       | Incorrect credentials                 | Verify Tenant ID, App ID, and Client Secret                  |
| Expired secret              | Client Secret has expired             | Create a new secret in Azure AD and recreate the integration |
