How to Onboard an Microsoft Azure into Idira Connect Cloud Environments (CCE) for SIA
Procedure
Idira Connect Cloud Environments (CCE) and Secure Infrastructure Access (SIA) Integration with Microsoft Azure
Complete Technical and How-To Document Version: 3.0 – Final Date: January 02, 2026
Definitions
Microsoft Azure Microsoft Azure is Microsoft’s public cloud computing platform. It provides a broad range of services including virtual machines, Kubernetes (Azure Kubernetes Service – AKS), storage, databases, networking, identity (Microsoft Entra ID), and AI/ML capabilities. Azure uses a subscription-based model with hierarchical management via subscriptions and management groups, all governed by Microsoft Entra ID for identity and access.
Idira Connect Cloud Environments (CCE) CCE is the foundational service in CyberArk’s Identity Security Platform for connecting and discovering assets across cloud providers (including Azure). It provides read-only visibility into the cloud environment’s structure and resources (subscriptions, management groups, VMs, AKS clusters, etc.), enabling centralized inventory and integration with other Idira services.
Idira Secure Infrastructure Access (SIA) – formerly Dynamic Privileged Access (DPA) SIA is CyberArk’s just-in-time (JIT), zero-standing-privilege access solution for infrastructure. Built on CCE discovery, it enables credential-less, audited access to cloud and on-premises targets (e.g., SSH/RDP to Azure VMs, native kubectl to AKS clusters, Azure Portal sessions) with policy enforcement, session recording, and threat detection.
1. Prerequisites
- Global Administrator in Microsoft Entra ID.
- Access to Azure Cloud Shell (Bash) – https://shell.azure.com.
- Admin access to the Idira Privilege Cloud portal.
Important Note: In most new or personal tenants, Global Administrator does not automatically have RBAC write permissions at the tenant root management group. You must perform temporary elevation (detailed in Step 1 of the How-To section).
2. How-To: Step-by-Step Onboarding Instructions
Step 1: Elevate Access in Azure (Fixes the Most Common Error)
This step is required for nearly all initial deployments to allow role assignments at the tenant root.
- Open Azure Portal.
- Go to Microsoft Entra ID > Properties.
- Under Access management for Azure resources, toggle to Yes.
- Save. This temporarily grants you User Access Administrator at the root scope.
- Do this before running any script.
Step 2: Start Onboarding in Idira Portal
- Log in to your Idira portal.
- Go to Administration > Cloud connectivity > Connect cloud environments > Microsoft Azure > Add.
- Choose Entra tenant.
- Enter your tenant ID (e.g., d3f5d79c-4027-4478-86e5-4cf58fb47935).
- Select Secure Infrastructure Access (SIA).
- Proceed to the Get service resources page (status: Waiting for deployment).
Step 3: Choose Your Deployment Method
Option A: Run Script (Recommended – Fastest)
Use this if the portal command is still valid (usually within ~24 hours).
- On the Get service resources page, stay on the Run script tab.
- Click Copy command.
- Open Azure Cloud Shell (Bash).
- Paste and run the full command.
The Run Script command is the complete one-liner shown in the portal under the Run script tab.
Option B: Download Script (Fallback)
Use this if the URL has expired or in restricted networks.
- Switch to the Download script tab.
- Click Download scripts → saves a zip file.
- Open Azure Cloud Shell (Bash).
- Upload the zip file (drag-and-drop or upload button).
- Run the following command (using values from your zip and portal page).
The Download Script command is the execution part after uploading the zip.
Step 4: Complete the Script Run
- Wait 1–3 minutes.
- On success: A cyan-colored base64 string is printed at the end.
- Copy the entire string.
Step 5: Finalize in Idira Portal
- Return to the Get service resources page.
- Paste the base64 string into Paste command output box.
- Click Connect.
- Wait for “Connecting services…” dialog (10–60 seconds) — do not close the page.
Step 6: Clean Up Elevated Access
- Azure Portal → Microsoft Entra ID → Properties.
- Toggle Access management for Azure resources back to No.
- Save.
Step 7: Verify and Next Actions
- Wait 15–60 minutes for initial discovery.
- In Idira portal: Tenant shows Connected, resources appear.
- Configure SIA policies.
- Test JIT access (e.g., kubectl to an AKS cluster).
Integration complete! Your Azure tenant is now securely connected.
3. Technical Details
3.1 Architecture Overview
Core Components
- CCE: Performs read-only discovery using Azure APIs (Microsoft Graph for tenant info, ARM for resources).
- SIA: Orchestrates JIT sessions, leveraging CCE-discovered targets.
- Authentication: Workload identity federation (OIDC) – Idira as trusted issuer, no client secrets.
- Data Flow: Idira → OIDC token exchange → Azure APIs → discovery/access orchestration → audited sessions.
Technical Note: CCE and SIA are part of CyberArk's Privilege Cloud (SaaS) or ISPSS (Identity Security Platform Self-Hosted). For self-hosted PAM, additional connector deployment is required.
Resources Created in Azure
The onboarding scripts create minimal resources with least-privilege permissions. All are scoped to the tenant root management group for full visibility.
|
Component |
Resource Type |
Name Pattern |
Key Permissions |
Scope |
Details |
|
CCE |
Entra App Registration |
cyberark-cloud-onboarding-app-entra-tenant-<postfix> |
Microsoft Graph: CrossTenantInformation.ReadBasic.All (UUID: cac88765-0581-4025-9725-5ebc13f729ee – reads basic tenant info like domain); RBAC: Management Group Reader (built-in role) |
/providers/Microsoft.Management/managementGroups/<tenant-id> |
Federated credential with CCE OIDC issuer/subject (e.g., subject: 52373621-9282-4368-8f18-8b118e3896c3). Admin consent granted via GrantAdminConsentForApp. Redirect URI: onboarding URL. |
|
SIA |
Entra App Registration |
cyberark-dpa-app-entra-tenant-<postfix> |
Custom RBAC role: Microsoft.Compute/virtualMachines/read, Microsoft.Network/networkInterfaces/read, Microsoft.Network/publicIPAddresses/read, Microsoft.ResourceGraph/resources/read |
Same as above |
Federated credential with SIA OIDC issuer (e.g., subject: a5216342-1a04-47d5-9676-d54d16de97b7). No Graph permissions. |
|
Both |
Service Principals |
Auto-generated |
Enable RBAC assignments |
N/A |
Created via az ad sp create --id <app-id>; used for role binding. |
|
SIA |
Custom RBAC Role |
CyberArk-SIA-Role-<short-tenant-id>-<postfix> |
Read-only for target discovery (no data actions) |
Tenant root |
Defined in JSON by dpa.sh (e.g., actions array); created via az role definition create; updated if exists via az role definition update. |
Technical Note: The Management Group Reader role includes actions like Microsoft.Management/managementGroups/read, Microsoft.Management/managementGroups/subscriptions/read, and Microsoft.Authorization/*/read (read-only for all authorization operations). This allows CCE to list resources without modification. The custom SIA role is highly granular, limited to VM/network discovery for JIT access – no control-plane writes.
3.2 Onboarding Zip Contents and Script Details
The zip (generated per tenant, e.g., CyberArk-Onboarding-<unique>.zip) is a self-contained package for Azure CLI execution. It follows CyberArk's standard CCE onboarding pattern for Azure, supporting manual deployment via Cloud Shell (no Terraform required in this version).
- Structure (after unzip):
- azure_onboarding_script/ (root folder)
- params.sh: Hard-coded tenant config (sourced by all scripts). Key variables: IDENTITY_SUFFIX (domain, e.g., "abu4791.com"), CCE/SIA issuers (OIDC URLs), user IDs (subjects), audience (api://AzureADTokenExchange), tenant ID, deploy type ("organization").
- utils.sh: Shared functions. Includes log (timestamped colored output), GetDeploymentName (generates app names like cyberark-cloud-onboarding-app-entra-tenant), CreateFederatedCredentialParameterFile (JSON for OIDC), GrantAdminConsentForApp (Graph API call for consent), DeploymentValidation (verifies active tenant), GetAzureTenantName (queries tenant display name).
- cyberark-onboarding.sh: Orchestrator (main entry point). Parses args (-e tenant, -s services, -o URL, -u postfix, -r remove). Validates services (AVAILABLE_SERVICES array includes "cloud_onboarding", "dpa"). Runs service scripts in loop, collects app details in temp files, encodes JSON as base64 (includes tenant/subscription names), shreds files. On CCE failure, auto-removes partial deployment.
- cloud_onboarding/ folder
- cloud_onboarding.sh: CCE deployment. Creates app via az ad app create (with redirect URI and resource access JSON for Graph permission). Sets federated credential via az ad app federated-credential create. Creates principal (az ad sp create --id <app-id>). Assigns role (az role assignment create --role "Management Group Reader"). Grants consent via REST API to Graph endpoint.
- dpa/ folder
- dpa.sh: SIA deployment. Generates custom role JSON (4 read actions) and creates/updates via az role definition create/update. Creates app (az ad app create --enable-id-token-issuance). Deletes old federated credentials if exist. Sets new OIDC via az ad app federated-credential create. Creates principal. Polls for role availability, then assigns via az role assignment create.
Execution Flow (Detailed – What Runs First, Second, etc.):
- The user runs the command in Cloud Shell, which unzips the package and executes cyberark-onboarding.sh (the orchestrator).
- cyberark-onboarding.sh first sources params.sh (loads tenant-specific OIDC and ID variables) and sources utils.sh (loads helper functions like logging and validation).
- It parses command-line arguments (tenant ID, services, onboarding URL, unique postfix).
- Validates the active Azure tenant matches the provided -e tenant ID (using DeploymentValidation from utils.sh).
- Loops through selected services in order: cloud_onboarding first, then dpa (SIA). This order is critical because SIA depends on CCE discovery being available.
- For each service:
- Runs the corresponding script (cloud_onboarding.sh or dpa.sh) with passed flags.
- Captures output (app IDs, consent status) to temporary files.
- If cloud_onboarding.sh fails (most commonly at role assignment), the orchestrator triggers automatic rollback: re-runs cloud_onboarding.sh with -r flag to delete partial resources, then exits.
- On success of both services:
- Combines collected details into structured JSON.
- Base64-encodes the JSON.
- Prints the encoded string in cyan for copying.
- Final cleanup: Shreds all temporary files and logs.
Technical Note: Scripts use Azure CLI v2.37+ for federated-credential commands. All operations are idempotent (create-or-update logic). The orchestrator ensures CCE is deployed first because SIA access relies on CCE visibility.
3.3 Security Design
- Least Privilege: CCE: Read-only inventory (no writes). SIA: Targeted reads for discovery only (e.g., VM metadata for SSH, AKS for kubectl). No data actions (e.g., no reading VM contents).
- Secretless: WIF/OIDC eliminates client secrets; tokens expire quickly (default 1 hour).
- Rollback: Scripts detect failures (e.g., via exit codes) and delete partial apps/principals/roles.
- Auditing: All Azure operations logged; Idira records SIA sessions.
- Compliance: Aligns with zero trust (ephemeral access), least privilege, SOC 2/GDPR (audited reads).
Potential Issue: Persistent elevation post-onboarding increases admin risk; always disable.
3.4 Post-Onboarding Management
- Discovery Sync: Initial full scan (15–60 minutes via ARM queries); ongoing incremental.
- SIA Policies: Define in Idira (users, targets like AKS, justification, MFA, time limits).
- Testing: Request JIT session → Idira proxies via ephemeral token (e.g., kubeconfig for AKS).
- Monitoring: Sessions recorded; threats detected via behavioral analytics.
Potential Issue: Delayed visibility if role propagation lags (wait 5–15 minutes).
3.5 Verification Checklist
- Entra ID > App registrations: Two cyberark-* apps with federated credentials (check Certificates & secrets).
- Tenant Root Group > Access control (IAM): Roles assigned to principals (e.g., Management Group Reader to CCE).
- Idira portal: Tenant Connected, resources visible in CCE dashboard.
Potential Issue: Apps created but no discovery → verify role scopes and Graph consent.
3.6 Troubleshooting Guide
|
When It Occurs |
Symptom |
Cause |
Resolution Steps |
|
During script (role assignment) |
AuthorizationFailed on roleAssignments/write |
No root RBAC write permission |
Elevate access via Entra ID > Properties toggle |
|
During app creation |
Microsoft.Directory/applications/create denied |
Missing Entra role |
Assign Application Administrator |
|
During federation |
Invalid issuer / bad request |
Outdated package |
Regenerate fresh package |
|
During curl |
403 Forbidden |
Expired S3 URL |
Use Download tab |
|
During consent |
Consent required |
Tenant policy blocks auto-consent |
Adjust consent settings or manual grant |
|
Post-failure |
Orphaned resources |
Interrupted rollback |
Manual delete apps/roles |
|
Post-connection |
No resources after 1 hour |
Sync delay |
Wait; contact support if persistent |
3.7 Key Lessons and Best Practices
- Elevate access only briefly and disable immediately after.
- Use fresh packages to avoid expiration.
- Test in non-production tenants.
- Review custom role JSON post-deployment for compliance.
Your Azure tenant is now fully secured with Idira CCE and SIA.
Appendix: Azure Roles and Concepts Reference
|
Term |
Description |
Role in Integration |
When You Need to Know This / Example Scenario |
|
Microsoft Entra ID |
Azure's identity service. |
Hosts Idira apps, manages federation and consent. |
When you see errors about creating apps or federated credentials (e.g., “Microsoft.Directory/applications/create denied”). You know to check Entra ID roles, not Azure RBAC. |
|
Global Administrator |
Highest Entra ID role. |
Allows elevation for RBAC. |
When the script fails with a role assignment error even though you are Global Admin. You realize you need to use the elevation toggle in Entra ID Properties. |
|
Application Administrator |
Entra ID role. |
Create/modify apps, federated credentials, consent. |
When the script fails early with “cannot create application” errors. You go to Entra ID > Roles and administrators to assign this role. |
|
Tenant Root Management Group |
Special group (ID = tenant ID). |
Default scope for full-tenant onboarding. |
When the error mentions “managementGroups/d3f5d79c…”. You understand the script is trying to assign roles at the full tenant level, so elevation is needed. |
|
User Access Administrator |
RBAC role at root (/). |
Write role assignments at root. |
When you see the exact error “does not have authorization to perform action 'Microsoft.Authorization/roleAssignments/write'”. You know this is the missing role, gained via elevation. |
|
Access Elevation |
Toggle in Entra ID Properties. |
Grants User Access Administrator at root to the signed-in Global Admin. |
When you are stuck on the role assignment error. You go to Entra ID Properties, toggle to Yes, refresh your session, and retry. |
|
Management Group Reader |
Built-in RBAC role. |
Read hierarchy and resources. |
When you want to confirm what the CCE app can do. You see it only has read access—no ability to change anything. |
|
Custom RBAC Role (CyberArk-SIA-Role-…) |
Script-created role. |
4 read actions for target discovery. |
When reviewing permissions after onboarding. You confirm SIA cannot modify anything—only discover targets. |
|
Workload Identity Federation |
Secretless auth feature. |
Idira authenticates as apps via OIDC. |
When someone asks “Where are the client secrets?” You explain there are none—Idira uses trusted OIDC issuers defined in params.sh. |