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
- 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 <
For more information, see Manage Subscriptions.
Add your Azure Cloud account
Perform the following steps to link your Azure cloud account to Harness.
In Cloud Costs, click New AutoStopping Rule.
In AutoStopping Rules, select Azure. It is the cloud account in which your workloads are running that you want to manage using AutoStopping rules.
Click Connect to your Azure account drop-down list and then click New Connector.
See Set up Cloud Cost Management for Azure for further instructions.