Connect a Provider#

A connection links one cloud account to Reply CMP. It unlocks Discovery, FinOps, Provisioning, Automation and Monitoring for that account.

Reply CMP uses a dedicated service principal (Azure), IAM user (AWS) or service account (GCP). It reads provider data and changes nothing unless you grant write permissions for Automation or Provisioning.

Note

The Permission level you choose in Reply CMP (ReadOnly / ReadWrite) does not grant cloud permissions. Assign the matching roles in the provider, as described below.

How to connect#

  1. Open Tenant → Connections → Add Connection and choose the provider.

  2. Create the credentials in the provider (see the tabs below) and fill in the form.

  3. Optionally set an Expiration date and time. Expired connections stop running operations.

  4. Select Validate, then Create Connection.

Validation runs a live test and the connection is saved only if it passes. It checks authentication and access, not that cost data is already available.

Provider setup#

You need

  • Permission to register an app and create a client secret in the subscription’s Microsoft Entra tenant.

  • Permission to assign roles at subscription scope (for example Owner or User Access Administrator), or an administrator who can do it.

  • The Subscription ID of an Enabled subscription.

Steps

  1. In the Azure portal, open Microsoft Entra ID → App registrations → New registration. Name it (for example reply-cmp-readonly), choose This directory only, no redirect URI.

  2. Copy the Application (client) ID and Directory (tenant) ID.

  3. Open Certificates & secrets → New client secret and copy its Value (shown once; not the Secret ID).

  4. Open Subscriptions → your subscription → Access control (IAM) → Add role assignment and assign the app, at subscription scope:

    • Reader for read-only;

    • Contributor for read-write (Automation, Provisioning).

  5. Make sure costs are visible to the subscription:

    • EA: the enterprise administrator enables Account owners can view charges.

    • CSP / Azure Plan: the partner enables customer cost visibility.

    See Cost Management access and CSP cost visibility. No billing export is needed.

Fields

Field

Value

Connection name

Your choice

Azure instance

Global (default) or China (Azure operated by 21Vianet)

App ID

Application (client) ID

Subscription ID

From the Subscriptions blade

Tenant ID

Directory (tenant) ID

Client Secret

Secret Value

Permission level

ReadOnly / ReadWrite

For China, create the app and roles in portal.azure.cn: Global credentials cannot access China subscriptions, and service availability differs (details).

Note

Reader covers all Monitoring queries. For a Log Analytics workspace that requires workspace permissions, also assign Log Analytics Reader on that workspace.

You need

  • Console access to create an IAM user, attach policies and create access keys.

  • Your 12-digit Account ID.

  • Access to the payer/management account (or its administrator) to configure Cost Explorer.

Important

Use a long-term IAM user access key (starts with AKIA). SSO or temporary credentials (ASIA…, session tokens) are not supported. Do not use root-user keys.

Steps

  1. In the AWS console, open IAM → Users → Create user (for example reply-cmp-readonly; console access not needed).

  2. Attach policies:

    • read-only: ReadOnlyAccess + AWSResourceExplorer2FullAccess;

    • read-write: PowerUserAccess + AWSResourceExplorer2FullAccess.

  3. Open the user → Security credentials → Create access key → Application running outside AWS (or Other). Save the Access Key ID and Secret Access Key (shown once).

  4. Enable AWS Resource Explorer and set a default view in the region you will select in Reply CMP (how).

  5. From the payer/management account, open Billing and Cost Management → Cost Management preferences and enable Resource-level data at daily granularity for the services you want. Allow up to 48 hours before validating (how).

Fields

Field

Value

Connection name

Your choice

Account ID

xxxx-xxxx-xxxx

Access Key ID

IAM user key (AKIA…)

Secret Access Key

Matching secret

Default Region

For example eu-west-1; must have a Resource Explorer default view

Permission level

ReadOnly / ReadWrite

Note

ReadOnlyAccess covers all Monitoring queries (CloudWatch Metrics, Alarms and Logs Insights).

You need

  • A GCP project with billing enabled, and permission to create a service account and key, grant roles and enable APIs.

  • Access to the Cloud Billing account to configure the Detailed usage cost export to BigQuery (permissions).

Steps

  1. Open IAM & Admin → Service Accounts → Create service account (for example reply-cmp-viewer).

  2. Grant roles:

    • on the project to discover: roles/viewer and roles/cloudasset.viewer;

    • on the billing export dataset: roles/bigquery.dataViewer;

    • on the project that hosts the dataset: roles/bigquery.jobUser (Reply CMP runs its queries there).

  3. In the project to discover, enable these APIs:

    API

    Service ID

    BigQuery

    bigquery.googleapis.com

    Cloud Asset

    cloudasset.googleapis.com

    Cloud Resource Manager

    cloudresourcemanager.googleapis.com

    Service Usage

    serviceusage.googleapis.com

    Recommender

    recommender.googleapis.com

    Compute Engine

    compute.googleapis.com

    Kubernetes Engine

    container.googleapis.com

    Cloud SQL Admin

    sqladmin.googleapis.com

    All eight are required. For Monitoring, also enable monitoring.googleapis.com. If the billing dataset is in another project, enable BigQuery there too.

  4. In Billing → Billing export → BigQuery export, enable Detailed usage cost and wait for the table gcp_billing_export_resource_v1_<BILLING_ACCOUNT_ID>. The standard, pricing and FOCUS exports are not supported.

  5. Open the service account → Keys → Add key → JSON and download the key file.

Fields

Field

Value

Connection name

Your choice

Project ID

Project to discover (ID, not number)

Billing dataset name

Dataset only, for example billing_export

Billing table name

Full detailed export table name, with its suffix

Billing project ID

Project hosting the dataset; leave empty if it is the Project ID

Service account key file

The JSON key

Permission level

ReadOnly / ReadWrite

The first export can take several hours, and the historical backfill up to five days.

Note

roles/viewer covers all Monitoring queries.

After connecting#

  • An initial discovery starts automatically and takes 1–10 minutes.

  • Costs appear after the first cost refresh, subject to provider billing delays.

  • Secrets are stored encrypted in Azure Key Vault and cannot be read back. To rotate them, update the connection.

Manage connections in Tenant → Connections: see Manage Connections. If validation or cost retrieval fails, see Troubleshooting.

Next steps#

Explore your inventory →

Review your first costs →