Skip to main content

azure-quickstart

Last updated on

Before You Start

To ensure a smooth and error-free setup experience, set up Azure billing Export before launching the Harness wizard. This will allow you to progress through the setup without delays or missing prerequisites.

Required InfoWhere to Find ItWhy It’s Needed
Storage Account NameAzure Portal → Storage accountsSource location of exported billing data.
Subscription IDAzure Portal → SubscriptionsIdentifies the subscription being monitored.
Storage ContainerAzure Portal → Storage accounts → ContainersTarget location for billing export data.
Storage Directory & Export NameWhen configuring Billing Export in AzureRequired to locate and identify billing data exports.

Set Up Azure Billing Export

  1. Go to Azure Portal → Cost Management → Exports.
  2. Click + Create to create a new export.
  3. Configure your export:
    • 📝 Name: Enter a descriptive name (e.g., ccm-harness-export)
    • 📊 Type: Choose Actual cost or Amortized cost
    • 🕒 Frequency: Set to Daily
  4. Set up storage destination:
    • Choose your Storage account (or create new)
    • Specify Container and Directory path
    • 📄 Format: CSV (recommended)
    • 🗜️ Compression: Gzip
  5. Click Create to complete setup.
Choose your billing type

Harness supports two billing types:

  • Actual: Reflects real-time incurred charges.
  • Amortised: Spreads out charges (e.g., reserved instances) evenly over usage.

Choose the one that aligns best with your internal reporting strategy. This cannot be changed later.

time for data delivery

It may take up to 24 hours for Azure to begin delivering cost and usage data. You can still proceed through the wizard, but the connection test may fail if data isn’t yet available.

In the meantime, explore the optional requirements and feature integrations available in Harness CCM, these will be available to select in your Choose Requirements step of the connection wizard:


Cloud Connector Wizard

Once you've gathered the required Azure details, follow these steps in the Harness setup wizard to connect your Azure account and enable cost visibility.

Interactive Guide

Step-by-Step Guide

Step 1: Overview

  1. Launch the wizard and select Azure as the cloud provider.
  2. Provide the following required information:
    • Name: Enter a descriptive name for your connector
    • Azure Tenant ID: Find your Azure Tenant ID
    • Azure Subscription ID: Find your Azure Subscription ID
    • (Optional)Description: Add a description for your connector
  3. Click Continue to proceed to the next step.

Step 2: Azure Billing Exports

  1. If you have not created a Billing Export, follow the instructions to create a Billing Export.
  2. Enter the following:
Required InfoWhere to Find ItWhy It’s Needed
Storage Account NameAzure Portal → Storage accountsSource location of exported billing data.
Subscription IDAzure Portal → SubscriptionsIdentifies the subscription being monitored.
Storage ContainerAzure Portal → Storage accounts → ContainersTarget location for billing export data.
Storage Directory & Export NameWhen configuring Billing Export in AzureRequired to locate and identify billing data exports.
  1. Select your Metric (Billing Type):
    • Actual or Amortised
  2. Click Continue.

Step 3: Choose Requirements

  1. Cost Visibility is selected by default.
  2. (Optional) You can enable any of the following features (they can also be added later):
    • Resource Inventory Management
    • Optimization by AutoStopping. If selected, you can select granular permissions for AutoStopping by clicking Continue
    • Cloud Governance
  3. Click Continue.

Step 4: Create Service Principal

Harness uses a multi-tenant application to securely access your billing data and enable the features you selected.

  1. The wizard displays customized Azure CLI commands based on your feature selections from Step 3: Choose Requirements.
  2. Copy and execute these commands in Azure Cloud Shell or your local terminal with Azure CLI.
  3. After successful execution, click Continue.
tip

The displayed commands are dependent on your specific feature selections. Always use the commands shown in your wizard interface.

info

Review Feature Permissions for CCM to understand the minimum roles or permissions needed for every CCM feature.


Step 5: Verify the Connection

  1. Harness will attempt to validate the connection using your inputs.
  2. If this step fails, it's usually because Azure has not yet delivered the first billing export.
    • Wait up to 24 hours after setting up the billing export before trying again.
  3. Once validated, click Finish Setup.

🎉 You’ve now connected your Azure account and enabled cost visibility in Harness.


Next Steps

Once your Azure billing data is flowing into Harness, explore these features to enhance your cloud cost management:

Turn visibility into action and unlock cost efficiency across your Azure cloud infrastructure.