Connecting Azure Subscriptions
CostBeacon needs read-only access to your Azure subscriptions to analyze costs and resources.
Prerequisites
- An Azure subscription you want to analyze
- Permission to create app registrations in Azure Entra ID (Azure AD)
- Permission to assign RBAC roles on the subscription
Step 1: Create an App Registration
- Go to Azure Portal → Azure Active Directory → App registrations
- Click + New registration
- Name it something like
CostBeacon-Reader - Leave the redirect URI empty and click Register
- Note the Application (client) ID and Directory (tenant) ID
Step 2: Create a Client Secret
- In your app registration, go to Certificates & secrets
- Click + New client secret
- Set an expiration (we recommend 12 months)
- Copy the secret value immediately — it won't be shown again
- Store the secret securely in Azure Key Vault (recommended)
Step 3: Assign Reader Access
- Go to your Azure Subscription → Access control (IAM)
- Click + Add role assignment
- Select the Reader role
- Search for your app registration name (e.g., CostBeacon-Reader)
- Click Review + assign
Important: CostBeacon only needs Reader access. We will never modify, create, or delete resources in your subscription unless you explicitly enable and authorize automation features.
Step 4: Add the Connection in CostBeacon
- In CostBeacon, go to Azure Connections → + New Connection
- Enter a friendly name (e.g., "Production Subscription")
- Enter the Tenant ID and Client ID from Step 1
- Select the auth mode and provide the client secret (or Key Vault reference)
- Click Save — CostBeacon will validate the connection
Troubleshooting
Connection shows "Invalid"
- Verify the client ID and tenant ID are correct
- Check that the client secret hasn't expired
- Ensure the app registration has Reader access on the subscription
No subscriptions discovered
- The Reader role must be assigned at the subscription level, not just the resource group
- Run a scan manually from the Scan Jobs page after connecting