Azure Setup Guide

Connect your Microsoft Azure account to KorPro and start analyzing your AKS clusters.

Prerequisites

  • Azure subscription with AKS clusters
  • Azure AD application registration
  • Service principal with appropriate permissions

Step 1: Register Application

  1. Go to Azure Portal → Azure Active Directory → App registrations
  2. Click "New registration"
  3. Name it "KorPro" and click "Register"
  4. Note the Application (client) ID and Directory (tenant) ID

Step 2: Create Service Principal

Create a service principal and assign the Reader role:

az ad sp create-for-rbac \
  --name "KorPro" \
  --role "Reader" \
  --scopes /subscriptions/{subscription-id}

Save the appId (client ID), password (client secret), and tenant values.

Step 3: Grant AKS Permissions

Assign additional permissions for AKS cluster access:

az role assignment create \
  --assignee {appId} \
  --role "Azure Kubernetes Service Cluster User Role" \
  --scope /subscriptions/{subscription-id}/resourceGroups/{resource-group}/providers/Microsoft.ContainerService/managedClusters/{cluster-name}

Step 4: Connect to KorPro

  1. In KorPro, go to Settings → Cloud Providers → Azure
  2. Click "Add Azure Account"
  3. Enter your Tenant ID, Client ID, and Client Secret
  4. Enter your Azure Subscription ID
  5. Click "Connect"

Troubleshooting

Authentication errors?

  • Verify the service principal has the Reader role
  • Check that the client secret hasn't expired
  • Ensure the subscription ID is correct