> ## 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.

# Azure CWPP architecture

> This document outlines the architecture and Azure deployment process of the Plerion workload security solution.

Plerion's workload security (Cloud Workload Protection Platform, or CWPP) capability allows you to protect your Azure workloads from threats, by leveraging enriched and contextualized data from vulnerabilities, inked exploits, sensitive data exposure, and Software Bill of Materials (SBOM).

***

## Agentless solution

Plerion’s workload security solution is fully agentless, eliminating the need to install software on Azure workloads. Instead, Plerion deploys ephemeral scanning appliances within your Azure subscription. These appliances automatically assess workloads and provide comprehensive visibility into their security posture.

Each appliance is a short-lived Azure Virtual Machine (VM) deployed in a dedicated, Plerion-managed resource group. Appliances run in the same Azure region as the workloads being scanned to ensure efficiency, data locality, and compliance with regional requirements.

***

## Onboarding process

![Azure onboarding process](https://mintcdn.com/pleriondocs/0zT57V1R6jtmvkjk/images/integrations/azure/azure-onboarding-architecture.png?fit=max\&auto=format\&n=0zT57V1R6jtmvkjk\&q=85\&s=fa45ceea52d7853c7bdcbd639b2166e7)

> [!NOTE]
>
> Before onboarding CWPP for an Azure subscription, make sure a Microsoft Entra ID integration is already configured in Plerion. CWPP uses the same App Registration created during that integration.
>
> For setup instructions, see [Getting started with Microsoft Entra ID](https://docs.plerion.com/guides/integrations/azure/setting-up-azure-active-directory.md).

### Steps to onboard an Azure subscription

**1. Create a dedicated resource group**

| Resource Type | Resource Name | Description |
| - | - | - |
| Resource Group | `plerion-cwpp-appliance-<plerionTenantId>-rg` | Dedicated resource group for launching Plerion appliances. |

> [!NOTE]
>
> `<plerionTenantId>` is the tenant ID of your Plerion tenant, available on the Plerion platform.

**2. Create a user-managed identity**

| Resource Type | Resource Name | Description |
| - | - | - |
| User Managed Identity | `plerion-cwpp-appliance-<plerionTenantId>-mi` | Managed identity attached to appliances for scanning workloads. |

**3. Assign required permissions**

| Identity | Role Name | Scope | Description |
| - | - | - | - |
| `plerion-cwpp-appliance-<plerionTenantId>-mi` | Reader | Azure Subscription | Read-only access to all resources in the subscription. |
| `plerion-cwpp-appliance-<plerionTenantId>-mi` | Disk Snapshot Contributor | Azure Subscription | Create, manage, and copy disk snapshots to the resource group for scanning. This built-in role also allows exporting disks and snapshots, reading storage account keys, and creating, changing or deleting storage accounts. |
| `plerion-cwpp-appliance-<plerionTenantId>-mi` | Contributor | Resource Group (`plerion-cwpp-appliance-<plerionTenantId>-rg`) | Full access to all resources in the appliance resource group. |
| `plerion-cwpp-appliance-<plerionTenantId>-mi` | AcrPull | Azure Subscription | Pull container images from your Azure Container Registries, so Container Apps and Container Instances can be scanned. |
| `plerion-cwpp-appliance-<plerionTenantId>-mi` | Storage Blob Data Reader | Storage Account (each Batch account's linked storage account) | Read Batch application packages, which Batch stores as blobs, so they can be scanned. The script grants it for the Batch accounts that exist when it runs; run it again after adding a Batch account. |
| `plerion-cwpp-appliance-<plerionTenantId>-mi` | Storage Blob Data Reader | Blob container (each Flex Consumption deployment container that uses an identity) | Read the deployment package of Flex Consumption function apps whose deployment storage uses an identity, so they can be scanned. The script grants it for the apps that exist when it runs; run it again after adding one. |
| `plerion-cwpp-appliance-<plerionTenantId>-mi` | Plerion Appliance Custom Role | Azure Subscription | Download the code of App Service web apps and function apps. It reads app settings (`Microsoft.Web/sites/config/list/action`) and the publishing profile, which holds the app's deployment credentials (`Microsoft.Web/sites/publishxml/action`). It downloads code through the Kudu endpoint (`Microsoft.Web/sites/publish/action`, which also allows deployments). |
| `plerion-cwpp-appliance-<plerionTenantId>-mi` | Plerion Foundry Agent Reader | Azure Subscription | Download the code zips of Microsoft Foundry hosted agents, so they can be scanned. Its one permission is the data action `Microsoft.CognitiveServices/accounts/AIServices/agents/read`. If you added the subscription before Plerion scanned code zips, run the script again. Until then, those agents show as not scanned with that reason. |
| Plerion App Registration (Service Principal) | Contributor | Resource Group (`plerion-cwpp-appliance-<plerionTenantId>-rg`) | Full access to manage appliance resources, networks, and perform cleanup operations. Used by the Plerion Control Plane to manage CWPP. |

After completing these steps, the **Plerion Protection Platform** has the necessary permissions to deploy appliances within the resource group and scan workloads in the Azure subscription.

Repeat this process for **each Azure subscription** that you wish to onboard to Plerion.

***

## Plerion control plane

![Plerion control plane](https://mintcdn.com/pleriondocs/0zT57V1R6jtmvkjk/images/integrations/azure/azure-plerion-control-plane.png?fit=max\&auto=format\&n=0zT57V1R6jtmvkjk\&q=85\&s=02605ea499b492cfb89a1f5fe3492f48)

The **Plerion Control Plane** manages appliances and orchestrates workload scanning within the Azure subscription. Hosted in the Plerion platform, it performs the following functions:

* Creates virtual networks in Azure for appliance communication
* Launches appliances in the subscription
* Assigns workloads to appliances for scanning
* Manages appliance lifecycle operations
* Collects and processes scan results

Plerion repeats the following process in every region where workload security is enabled.

**1. Network configuration**

The Plerion Control Plane creates a **virtual network (VNet)** in the Azure subscription for appliances to securely communicate with the Plerion platform.

**Virtual network configuration**

| Specification | Details |
| - | - |
| **Name** | `plerion-cwpp-appliance-<plerionTenantId>-vnet` |
| **Address space** | `10.0.0.0/16` |

**Subnet configuration**

| Specification | Details |
| - | - |
| **Name** | `plerion-cwpp-appliance-<plerionTenantId>-subnet` |
| **Address space** | `10.0.0.0/24` |

**Network security group configuration**

| Specification | Details |
| - | - |
| **Name** | `plerion-cwpp-appliance-<plerionTenantId>-nsg` |
| **Inbound traffic** | No inbound allow rules are added. Azure's default rules block inbound traffic from the internet. |
| **Outbound traffic** | Allows outbound HTTPS (port 443) to the Plerion platform and to download appliance dependencies. Azure's default rules also allow other outbound traffic to the internet. |

> [!NOTE]
>
> Custom network configurations are not currently supported. Support for custom networks will be added in future releases.

**2. Launching appliances**

The Control Plane launches appliances in the dedicated resource group created during onboarding.

Appliances are deployed in the same region as the workloads being scanned, using the following configuration:

| Specification | Details |
| - | - |
| **Instance type** | Standard D2s v3 |
| **CPU** | 2 vCPUs |
| **Memory** | 8 GiB |
| **Storage** | 30 GiB |
| **Operating system** | Linux (Ubuntu 22.04) |
| **Networking** | Public IP address for secure communication with the Plerion platform (aligned with Azure security best practices) |

**3. Assigning workloads to appliances**

Each appliance scans a batch of workloads of one type: up to 3 virtual machines or scale sets (each needs a disk snapshot), or up to 20 web apps, functions, container apps or container groups. The number of appliances per region follows the number of workloads and the subscription's vCPU quota. See [Azure workload coverage](https://docs.plerion.com/guides/integrations/azure/azure-cwpp-workload-coverage.md) for how each workload type is scanned.

**4. Managing appliance lifecycle**

The Plerion Control Plane manages the full lifecycle of appliances, including:

* Starting appliances
* Deleting appliances

An appliance is stopped once it completes scanning all assigned workloads and is deleted immediately afterward.

If an appliance fails to stop within **3 hours**, it is automatically deleted and any unscanned workloads are marked as **Not Scanned**.

If deletion fails, the Control Plane retries the cleanup during the next integration scan and notifies the user in the Plerion platform.

**5. Collecting scan results**

After completing the scan, appliances send their results to the Plerion Control Plane.

The Control Plane stores and processes these results in the Plerion platform, making them available for review.

Plerion Workload Scanner collects only **security-related metadata** from workloads. When combined with telemetry from **CSPM** and **CIEM** capabilities, this data provides rich context to help prioritize and remediate security issues.

> [!NOTE]
>
> The Plerion Workload Scanner does **not** collect raw data, PII/PHI, or sensitive business information.

***

## How Plerion reaches your subscription

The Plerion Control Plane runs in Plerion's AWS environment. It does not open network connections into your subscription or to the appliances. It manages CWPP only through the Azure Resource Manager API, over HTTPS.

* **Sign-in:** The Control Plane signs in to Microsoft Entra ID as the Plerion App Registration. It uses the client secret you entered when you set up the [Microsoft Entra ID integration](https://docs.plerion.com/guides/integrations/azure/setting-up-azure-active-directory.md).
* **Storing the secret:** Plerion stores the client secret encrypted. The secret is never sent to the appliances.
* **What it can change:** For CWPP, the App Registration has the Contributor role on the appliance resource group only. Contributor cannot create role assignments. The Control Plane attaches the managed identity to the appliances it launches and writes their start-up script, so it can use the roles you give that identity.
* **Removing access:** Delete the client secret or remove the role assignment in Azure to revoke the Control Plane's access. Deleting the client secret also stops the Microsoft Entra ID integration.

***

## How appliances access your resources

Each appliance runs as the user-assigned managed identity `plerion-cwpp-appliance-<plerionTenantId>-mi`. You create this identity and its role assignments when you run the install script, so you decide what the appliances can reach. The roles are listed in [Assign required permissions](#steps-to-onboard-an-azure-subscription).

* **No stored credentials:** Appliances sign in with the managed identity. Azure issues them short-lived tokens, so no key or password for your subscription is stored on the appliance.
* **Read access to workloads:** The identity reads resources across the subscription with Reader. For virtual machines, it snapshots their disks into the appliance resource group and scans the copies. The other roles let it read App Service code, container images, Batch packages and Foundry agent code, so these can be scanned.
* **Write access:** The identity has Contributor only on the appliance resource group. Elsewhere in the subscription, two roles give it write access:
  * [Disk Snapshot Contributor](https://learn.microsoft.com/en-us/azure/role-based-access-control/built-in-roles/compute#disk-snapshot-contributor) lets it create, change, delete and export disk snapshots, and export disks. It also lets it read storage account keys, and create, change or delete storage accounts.
  * The Plerion Appliance Custom Role lets it download or deploy the code of App Service web apps and function apps.
* **No inbound access:** Plerion adds no inbound allow rules to the network security group, so Azure's default rules block inbound traffic from the internet. The appliance's admin password is random, set at launch and not stored.
* **Sending results:** An appliance sends its results to Plerion over outbound HTTPS.

***

## Monitoring resources created by Plerion

All resources required for CWPP are deployed within the dedicated resource group (`plerion-cwpp-appliance-<plerionTenantId>-rg`) created during onboarding.\
Resources are prefixed with `plerion-cwpp-*` and tagged with `Owner=Plerion`.

**Benefits of a dedicated resource group**:

* Simplifies monitoring and identification of Plerion-created resources
* Enables easy cleanup of Plerion resources
* Provides clear visibility into resource costs and supports budget tracking


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