> ## Documentation Index
> Fetch the complete documentation index at: https://prowler-feat-codex-plugin.mintlify.site/llms.txt
> Use this file to discover all available pages before exploring further.

> ## Agent Instructions
> Prowler product naming: Prowler App is now Prowler Local Server, and Prowler Enterprise is now Prowler Private Cloud. Always use the current names when answering. The full product reference is at /getting-started/products: Open Source projects are Prowler CLI, Prowler Local Server, Prowler Local Dashboard, and Prowler SDK; Prowler Products are Prowler Cloud, Prowler Private Cloud, Prowler Hub, Prowler Lighthouse AI, and Prowler MCP.

# Getting Started With Azure on Prowler

## Prowler Cloud

<iframe width="560" height="380" src="https://www.youtube-nocookie.com/embed/v1as8vTFlMg" title="Prowler Cloud Onboarding Azure" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen="1" />

> Walkthrough video onboarding an Azure Subscription using Service Principal.

<Note>
  **Government Cloud Support**

  Government cloud subscriptions (Azure Government) are not currently supported, but we expect to add support for them in the near future.
</Note>

### Prerequisites

Before setting up Azure in Prowler Cloud, you need to create a Service Principal with proper permissions.

For detailed instructions on how to create the Service Principal and configure permissions, see [Authentication > Service Principal](/user-guide/providers/azure/authentication#service-principal-application-authentication-recommended).

***

### Step 1: Get the Subscription ID

1. Go to the [Azure Portal](https://portal.azure.com/#home) and search for `Subscriptions`
2. Locate and copy your Subscription ID

   <img src="https://mintcdn.com/prowler-feat-codex-plugin/Ioj1Ox8OwpiLUtUp/images/providers/search-subscriptions.png?fit=max&auto=format&n=Ioj1Ox8OwpiLUtUp&q=85&s=607a85966c2cebd6d09d0315df5d52e1" alt="Search Subscription" width="1096" height="358" data-path="images/providers/search-subscriptions.png" />

   <img src="https://mintcdn.com/prowler-feat-codex-plugin/YeknMkeUzI06TFyY/images/providers/get-subscription-id.png?fit=max&auto=format&n=YeknMkeUzI06TFyY&q=85&s=0ef96637a40527aa5bb6a3874669eac1" alt="Subscriptions Page" width="1041" height="531" data-path="images/providers/get-subscription-id.png" />

***

### Step 2: Access Prowler Cloud

1. Navigate to [Prowler Cloud](https://cloud.prowler.com/) or launch [Prowler Local Server](/user-guide/tutorials/prowler-app)

2. Navigate to `Configuration` > `Providers`

   <img src="https://mintcdn.com/prowler-feat-codex-plugin/Ioj1Ox8OwpiLUtUp/images/prowler-app/cloud-providers-page.png?fit=max&auto=format&n=Ioj1Ox8OwpiLUtUp&q=85&s=e6a051baaf621e60e2ff320970fe5a3a" alt="Providers Page" width="263" height="917" data-path="images/prowler-app/cloud-providers-page.png" />

3. Click `Add Provider`

   <img src="https://mintcdn.com/prowler-feat-codex-plugin/Ioj1Ox8OwpiLUtUp/images/prowler-app/add-cloud-provider.png?fit=max&auto=format&n=Ioj1Ox8OwpiLUtUp&q=85&s=72f8f70064f6819dc7799c126be472e3" alt="Add a Provider" width="380" height="80" data-path="images/prowler-app/add-cloud-provider.png" />

4. Select `Microsoft Azure`

   <img src="https://mintcdn.com/prowler-feat-codex-plugin/Ioj1Ox8OwpiLUtUp/images/providers/select-azure-prowler-cloud.png?fit=max&auto=format&n=Ioj1Ox8OwpiLUtUp&q=85&s=922be41a577a95ff52281ffcb3792013" alt="Select Microsoft Azure" width="1920" height="1080" data-path="images/providers/select-azure-prowler-cloud.png" />

5. Add the Subscription ID and an optional alias, then click `Next`

   <img src="https://mintcdn.com/prowler-feat-codex-plugin/fnXz9j7D9fZKfk4E/images/providers/add-subscription-id.png?fit=max&auto=format&n=fnXz9j7D9fZKfk4E&q=85&s=20d9b9177a038ada7ceb4cc8da7ae041" alt="Add Subscription ID" width="1920" height="1080" data-path="images/providers/add-subscription-id.png" />

### Step 3: Add Credentials to Prowler Cloud

For Azure, Prowler Cloud uses a service principal application to authenticate. For more information about the process of creating and adding permissions to a service principal refer to this [section](/user-guide/providers/azure/authentication). When you finish creating and adding the [Entra](/user-guide/providers/azure/create-prowler-service-principal#assigning-proper-permissions) and [Subscription](/user-guide/providers/azure/subscriptions) scope permissions to the service principal, enter the `Tenant ID`, `Client ID` and `Client Secret` of the service principal application.

1. Go to your App Registration overview and copy the `Client ID` and `Tenant ID`

   <img src="https://mintcdn.com/prowler-feat-codex-plugin/fnXz9j7D9fZKfk4E/images/providers/app-overview.png?fit=max&auto=format&n=fnXz9j7D9fZKfk4E&q=85&s=4cc2fcde2ca1e622600b31b1c36aff33" alt="App Overview" width="1842" height="1062" data-path="images/providers/app-overview.png" />

2. Go to Prowler Cloud and paste:

   * `Client ID`
   * `Tenant ID`
   * `Client Secret` from [earlier](/user-guide/providers/azure/authentication#service-principal-application-authentication-recommended)

   <img src="https://mintcdn.com/prowler-feat-codex-plugin/fnXz9j7D9fZKfk4E/images/providers/add-credentials-azure-prowler-cloud.png?fit=max&auto=format&n=fnXz9j7D9fZKfk4E&q=85&s=ecdb5ba9d15070e9d5fc726ea6581cbe" alt="Prowler Cloud Azure Credentials" width="1920" height="1080" data-path="images/providers/add-credentials-azure-prowler-cloud.png" />

3. Click `Next`

   <img src="https://mintcdn.com/prowler-feat-codex-plugin/YeknMkeUzI06TFyY/images/providers/click-next-azure.png?fit=max&auto=format&n=YeknMkeUzI06TFyY&q=85&s=c027ace464a040c590e700bdc0bb6fa1" alt="Next Detail" width="1920" height="1080" data-path="images/providers/click-next-azure.png" />

4. Click "Launch Scan"

   <img src="https://mintcdn.com/prowler-feat-codex-plugin/YeknMkeUzI06TFyY/images/providers/launch-scan.png?fit=max&auto=format&n=YeknMkeUzI06TFyY&q=85&s=bbceeb8aff5c860db5ff62e91ba43c9b" alt="Launch Scan Azure" width="1920" height="1080" data-path="images/providers/launch-scan.png" />

***

## Prowler CLI

### Configure Azure Credentials

To authenticate with Azure, Prowler CLI supports multiple authentication methods. Choose the method that best suits your environment.

For detailed authentication setup instructions, see [Authentication](/user-guide/providers/azure/authentication).

**Service Principal (Recommended)**

Set up environment variables:

```console theme={null}
export AZURE_CLIENT_ID="XXXXXXXXX"
export AZURE_TENANT_ID="XXXXXXXXX"
export AZURE_CLIENT_SECRET="XXXXXXX"
```

Then run:

```console theme={null}
prowler azure --sp-env-auth
```

**Azure CLI Credentials**

Use stored Azure CLI credentials:

```console theme={null}
prowler azure --az-cli-auth
```

**Browser Authentication**

Authenticate using your default browser:

```console theme={null}
prowler azure --browser-auth --tenant-id <tenant-id>
```

**Managed Identity**

When running on Azure resources:

```console theme={null}
prowler azure --managed-identity-auth
```

### Subscription Selection

To scan a specific Azure subscription:

```console theme={null}
prowler azure --subscription-ids <subscription-id>
```

To scan multiple Azure subscriptions:

```console theme={null}
prowler azure --subscription-ids <subscription-id1> <subscription-id2> <subscription-id3>
```
