LIVE WORKSHOP: Choosing the Right Scaling Approach for K8s Workloads.
Save your spot!
LogoLogo
PerfectScale.ioStart for FreeYour Account
  • Kubernetes Optimization
  • Getting started
    • How to onboard a cluster
    • Onboarding clusters programmatically
    • Onboarding with ArgoCD
    • Updating PerfectScale Agent resources
    • Re-onboarding a cluster
  • Enable automation
    • Automation setup instruction
    • Including a cluster, namespace or workload to the Automation
      • Configuring Automation for a cluster
      • Configuring Automation for a namespace
      • Configuring Automation for a workload
    • Excluding a namespace or workload from the Automation
    • Automation customization
    • Verifying Automation status
    • Exploring Automation KPIs
    • Self-healing mechanism for unschedulable pods
    • Disable automation
    • Troubleshooting
    • Automation with GitOps
  • Cloud billing integration
    • Connecting AWS CUR
    • Connecting Azure Cost Management
  • Clusters' metrics overview
  • Podfit | vertical pod right-sizing
    • Understanding 'At Risk' indicators
    • LimitRange and ResourceQuota
  • Infrafit | node right-sizing
  • Configure alerts
    • Alerts acknowledgement
  • Trends monitoring
  • Revisions history log
  • Product overview
    • How to monitor PerfectScale Agent
    • PerfectScale data collected
    • PerfectScale Autoscaler Objects' Events
    • Outbound Request Ports used by the Exporter and Autoscaler
    • PerfectScale Weekly Report
    • Product architecture
  • Customizations
    • Alerting
      • Resiliency alerts
      • Financial alerts
    • Pricing
      • Custom Pricing configuration
      • AWS CUR configuration
      • Azure Cost Management configuration
    • Ticketing & Bug Tracking
    • Communication & Messaging
      • Slack Integration
        • How to configure slack_token
        • How to configure routings
      • MS Teams Integration
        • How to configure teams_webhook
      • Datadog Alerts Integration
    • Label customizations
    • Grouping
    • Observability
    • Podfit labels
    • Optimization Policy customization
  • Administration
    • Cluster settings
    • User management
    • Roles and permissions
    • Subscription details
    • Help Center
  • PerfectScale trial
    • How to find your allocated vCPU?
  • PerfectScale Prometheus Exporter
  • Security
    • MFA
    • SSO
    • ps-agent RBAC Permissions
    • psc-autoscaler RBAC Permissions
    • ps-exporter via Proxy Configuration
  • Public API
  • Help PerfectScale to improve
  • Go to your account
Powered by GitBook
LogoLogo

© PerfectScale by DoiT 2025

On this page
  • How to get client_id and tenant_id
  • How to get client_secret
  • How to get client_subscription
  • How to grant permissions to your application
  • Azure pricing configuration set
  • How to create Azure Profile
  • How to apply Azure Profile
  1. Cloud billing integration

Connecting Azure Cost Management

Step-by-step guide on how to enable Azure Cost Management

PreviousConnecting AWS CURNextClusters' metrics overview

Last updated 2 months ago

In order to provide PerfectScale with access to your Azure pricing using default authentication with the Azure SDK, several environment variables should be passed:

azure_client_id

azure_tenant_id

azure_client_secret

azure_client_subscription

PerfectScale has created a detailed guide to help you access the credentials effortlessly.

How to get client_id and tenant_id

  1. Sign in to the .

  2. In the left-hand menu, navigate to Microsoft Entra ID.

  3. Under Manage, select App registrations.

  4. Click + New registration at the top.

  5. Enter a name for your application, for example, MyAppPerfectScale.

  6. Choose the supported account type. Typically, a Single tenant is used.

  7. Click Register.

  8. After registering, you’ll be redirected to the application overview page.

    1. Copy the Application (client) ID – this is your azure_client_id.

    2. Copy the Directory (tenant) ID – this is your azure_tenant_id.

How to get client_secret

  1. In the application’s Certificates & secrets section, go to Client secrets.

  2. Click + New client secret.

  3. Add a description, for example, Secret for PerfectScale, and set an expiry period as needed.

  4. Click Add.

How to get client_subscription

  1. Select the subscription you want to use.

  2. Copy your Subscription ID (azure_client_subscription) from the overview page.

How to grant permissions to your application

Ensure you provide PerfectScale with the necessary permissions, as this step is mandatory.

  1. Select the subscription you want to use.

  2. In the left-hand menu, choose Access Control (IAM).

  3. Navigate to Role assignments.

  4. Press + Add and choose Add role assignment.

  5. In the Role section, select Reader role and click Next.

  6. In the Members section, click Select Members and use the right-hand search menu to find your application (e.g., “MyApp”).

    • You can also search the application using Object ID.

  7. Click Review + Assign.

Azure pricing configuration set

Once you have all the credentials needed, you need to create an Azure Profile and apply it to the desired cluster.

From the Settings tab

Go to the Settings tab on the left panel -> select Pricing -> click the +Add Profile button -> select Azure -> name the profile and put the needed values in the relevant fields -> click Save button.

From the Overview tab

Go to the Overview tab on the left panel -> find the cluster to which you want to apply the Azure Profile and click gear button -> go to Customizations -> click on Add New Profile in the Pricing Profile drop-down list -> select Azure type -> name and configure your profile -> click the Save And Apply button -> click the Save Changes button.

Azure Profile configuration

Azure configuration verification

To verify if Azure Cost Management is configured properly, click the Test Integration button.

Apply to a single cluster

To apply Azure Profile to the cluster, go to the Overview tab on the left-hand panel -> find the cluster to which you want to apply the Azure Profile and click gear dots button -> go to Customizations -> select the needed profile in the Pricing Profile drop-down list.

Apply to multiple clusters

To apply the profile to multiple clusters from a single view, use the Manage Assignments feature.

Go to the Settings tab on the left-hand panel -> select the Pricing -> click the Manage Assignments button -> apply the profile for the needed clusters -> click the Save Changes button.

Copy the Value (your azure_client_secret) immediately, as it will only be displayed once

In the , navigate to Subscriptions in the left-hand menu.

In the , navigate to Subscriptions in the left-hand menu.

How to create Azure Profile

There are two options for creating a Profile: or directly .

: The unique identifier assigned to your Azure subscription that allows PerfectScale to interact with Azure resources within your subscription.

(Directory (tenant) ID): The unique identifier of the organization in Azure Active Directory that allows Azure to manage authentication within the specific directory.

(Application (client) ID): The unique identifier assigned to your application that allows it to access Azure resources.

: The secret key that allows the application to authenticate to Azure AD and get an access token to Azure resources.

When the configuration is correct, you will see the message Azure Configured Correctly.

In case of Azure Configured Wrongly response, check the Show integration failure details dropdown and fix the displayed issues.

How to apply Azure Profile

‼️
‼️
🛠️
🟢
🔴
🛠️
Azure Portal
Azure Portal
from the Settings tab
from the Overview
azure_subscription_id
azure_tenant_id
azure_client_id
azure_client_secret
Azure Portal
New app registration
New app registration form
Credentials
New client secret
Add a client secret
Subscription ID
Access control
Add role assignment
Reader role
Application search
Azure profile from the settings
Azure profile from the overview
Azure profile configuration
Wrong Azure profile configuration
Applying a single Azure profile to the cluster
Applying multiple Azure profiles to the cluster