Skip to main content

Create an Azure Connector for AutoStopping Rules

Connectors allow Harness to connect to your deployment environments, such as Kubernetes Clusters, AWS, Google Cloud Platform, Azure, etc. To create an AutoStopping Rule for your Azure instances, you first need to connect Harness to your Azure account. This topic describes how to connect your Azure cloud account to Harness.

Before you begin

Prerequisites

  • Make sure that you have the Application Administrator role assigned for your Azure AD. Users in this role can create and manage all aspects of enterprise applications, application registrations, and application proxy settings. See Application Administrator.
  • Many Azure CLI commands act within a subscription. Ensure that you have selected the right subscription before executing the commands. If you need to switch the subscription, use the following command:
    az account set -s <subs id/name>
    For more information, see Manage Subscriptions.

Add your Azure Cloud account

Perform the following steps to link your Azure cloud account to Harness.

  1. In Cloud Costs, click New AutoStopping Rule.

  2. In AutoStopping Rules, select Azure. It is the cloud account in which your workloads are running that you want to manage using AutoStopping rules.

  3. Click Connect to your Azure account drop-down list and then click New Connector.

  4. See Set up Cloud Cost Management for Azure for further instructions.

Next Steps