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
- Go to Azure Portal → Azure Active Directory → App registrations
- Click "New registration"
- Name it "KorPro" and click "Register"
- 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
- In KorPro, go to Settings → Cloud Providers → Azure
- Click "Add Azure Account"
- Enter your Tenant ID, Client ID, and Client Secret
- Enter your Azure Subscription ID
- 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