Skip to main content
With the Microsoft Azure subscription integration, you can connect Azure subscriptions to Plerion. This enables Cloud Security Posture Management (CSPM) for continuous configuration checks, and optionally Cloud Workload Protection Platform (CWPP) to scan workloads for vulnerabilities.
Before onboarding Azure subscriptions, ensure you have a Microsoft Entra ID integration. The subscription integration reuses the same app registration created in Microsoft Entra ID.

Prerequisites

  • Owner role at the subscription scope
    Needed to grant the Plerion App registration permissions for CSPM, and to create the resource group, managed identity, and role assignments for CWPP.
  • CWPP requirements
    If you plan to enable CWPP, review the Azure CWPP prerequisites. These are not needed if you only want CSPM.

Steps to add a Microsoft Azure subscription integration

1

On the Plerion dashboard, go to Settings > Integrations

Sidebar navigation with Settings expanded and Integrations highlighted
2

Find Microsoft Azure subscription and click the + button

Integrations page with Azure subscription option and plus button to add integration
3

Select a Microsoft Entra ID integration

Choose an existing Microsoft Entra ID integration to reuse its app registration.
4

Grant the app registration subscription access

  • Provide access to the App registration using either the Azure CLI or Azure Portal.
  • If enabling CWPP, select the default region where Plerion will create a dedicated resource group.
5

Download and run the setup script

  • This will list the available subscriptions.
  • Use the associated number to select one, or press y to install on all subscriptions.
CLI output showing available subscriptions
6

Install CSPM roles

  • Press y to install CSPM roles on all subscriptions, or enter the subscription number to install on a specific subscription.
  • To skip optional CSPM roles, press s. To install them, press y.
CLI output showing CSPM role installation prompt
7

Add the Foundry agent role (optional)

  • The script offers to add the Foundry agent role, which Plerion needs to collect Microsoft Foundry agents and memory stores.
  • Press y to add the role on all subscriptions, or enter the subscription number to add it on a specific subscription.
  • To skip the role, press s.
8

Install CWPP roles (optional)

Press y to enable CWPP on all subscriptions, or enter a subscription number to enable it only on that subscription.CWPP includes the Foundry agent role for the scanning appliance, so Plerion can download and scan the code of Foundry hosted agents.
CLI output showing CWPP role installation prompt
9

Return to Plerion and verify access

  • On the Plerion platform, click Verify access.
  • Subscriptions with correct permissions will be displayed.
Verification screen showing Azure subscriptions added successfully
10

Add subscriptions to your tenant

  • Select the subscriptions to onboard and click Add subscriptions.
  • These subscriptions will now be available in Plerion for CSPM and CWPP.

Microsoft Foundry agent role (optional)

Plerion collects Microsoft Foundry (formerly Azure AI Foundry) accounts, projects, model deployments, connections, guardrails and blocklists with the CSPM roles from the steps above. Agents and memory stores are read from Foundry’s data plane, which needs a data action that those roles do not have. To collect them, add this role to each subscription that has Foundry agents. The role is named Plerion Foundry Agent Reader- followed by the subscription ID. Its one permission, Microsoft.CognitiveServices/accounts/AIServices/agents/read, lets Plerion read agents and memory stores. The role cannot read connection secrets. The permission also allows reading files uploaded to Foundry and conversations with agents. Plerion does not read those. It does not store the text of an agent’s instructions either, and keeps their length and a hash. The permission also allows downloading the code of a hosted agent deployed from a code zip. A code zip can hold secrets. When CWPP is on, the install script gives the same role to Plerion’s scanning appliance. The appliance runs in your subscription. It downloads each hosted agent’s code zip and scans it for vulnerabilities, secrets and an SBOM. See Azure workload coverage. Without the role, Plerion shows no Foundry agents or memory stores for the subscription and reports no error.

Add the role to a subscription you already onboarded

You need the Owner or User Access Administrator role on the subscription. Run both commands in Bash, once for each subscription. <PLERION APP CLIENT ID> is the application (client) ID of the app registration you created for Plerion. Create the role:
Then assign the role. If Azure says the role does not exist, wait a minute and run this command again.
In Plerion, open the Microsoft Azure subscription integration page and select your Microsoft Entra ID integration. Step 5 on that page, (Optional) Attach custom role to 'Plerion App' for Microsoft Foundry agents, then shows the same commands with your client ID filled in, and instructions for the Azure Portal. To add the role to many subscriptions at once, download the setup script from the same page and run it. Press s at both CSPM role prompts, then y or a subscription number at the Foundry prompt. If the script then shows the CWPP prompt, press n to exit. Azure can take up to 10 minutes to apply the role. Agents and memory stores appear in Plerion at the next scan.

Troubleshooting

See the Azure subscription troubleshooting guide for common onboarding errors and solutions.