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

2
Find Microsoft Azure subscription and click the + button

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
- Download the script and run it in your CLI or Azure Cloud Shell.
- This will list the available subscriptions.
- Use the associated number to select one, or press
yto install on all subscriptions.

6
Install CSPM roles
- Press
yto 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, pressy.

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
yto 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.
9
Return to Plerion and verify access
- On the Plerion platform, click
Verify access. - Subscriptions with correct permissions will be displayed.

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 namedPlerion 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:
(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.