---
title: "Create Cloud Cost Management Azure configs"
method: POST
path: "/api/v2/cost/azure_uc_config"
tags: ["Cloud Cost Management"]
---

# Create Cloud Cost Management Azure configs

`POST /api/v2/cost/azure_uc_config`

## Request

- Base URL: `https://api.datadoghq.com`
- URL: `https://api.datadoghq.com/api/v2/cost/azure_uc_config`
- Auth: one of:
  - API key in header `DD-API-KEY` and API key in header `DD-APPLICATION-KEY`
  - OAuth 2
    - Authorization code: `/oauth2/v1/authorize`
    - Token URL: `/oauth2/v1/token` scopes: `cloud_cost_management_write`

Create a Cloud Cost Management account for an Azure config.

## Request body

- AzureUCConfigPostRequest: Azure config Post Request.
  - `data` AzureUCConfigPostData, required: Azure config Post data.
    - `attributes` AzureUCConfigPostRequestAttributes: Attributes for Azure config Post Request.
      - `account_id` string, required: The tenant ID of the Azure account.
      - `actual_bill_config` BillConfig, required: Bill config.
        - `export_name` string, required: The name of the configured Azure Export.
        - `export_path` string, required: The path where the Azure Export is saved.
        - `storage_account` string, required: The name of the storage account where the Azure Export is saved.
        - `storage_container` string, required: The name of the storage container where the Azure Export is saved.
      - `amortized_bill_config` BillConfig, required: Bill config.
        - `export_name` string, required: The name of the configured Azure Export.
        - `export_path` string, required: The path where the Azure Export is saved.
        - `storage_account` string, required: The name of the storage account where the Azure Export is saved.
        - `storage_container` string, required: The name of the storage container where the Azure Export is saved.
      - `client_id` string, required: The client ID of the Azure account.
      - `scope` string, required: The scope of your observed subscription.
    - `type` 'azure_uc_config_post_request', required: Type of Azure config Post Request.

## Response `200`

OK

- AzureUCConfigPairsResponse: Response of Azure config pair.
  - `data` AzureUCConfigPair: Azure config pair.
    - `attributes` AzureUCConfigPairAttributes, required: Attributes for Azure config pair.
      - `configs` AzureUCConfig[], required: An Azure config.
        - `account_id` string, required: The tenant ID of the Azure account.
        - `client_id` string, required: The client ID of the Azure account.
        - `created_at` string: The timestamp when the Azure config was created.
        - `dataset_type` string, required: The dataset type of the Azure config.
        - `error_messages` string[], nullable: The error messages for the Azure config.
        - `export_name` string, required: The name of the configured Azure Export.
        - `export_path` string, required: The path where the Azure Export is saved.
        - `id` string: The ID of the Azure config.
        - `months` integer: The number of months the report has been backfilled.
        - `scope` string, required: The scope of your observed subscription.
        - `status` string, required: The status of the Azure config.
        - `status_updated_at` string: The timestamp when the Azure config status was last updated.
        - `storage_account` string, required: The name of the storage account where the Azure Export is saved.
        - `storage_container` string, required: The name of the storage container where the Azure Export is saved.
        - `updated_at` string: The timestamp when the Azure config was last updated.
      - `id` string: The ID of the Azure config pair.
    - `id` string: The ID of Cloud Cost Management account.
    - `type` 'azure_uc_configs', required: Type of Azure config pair.

## Other responses

- `400`: Bad Request
- `403`: Forbidden
- `429`: Too many requests

---

[API](https://skmtc.dev/datadog/apis/datadog-api-v2-collection.md) - [All operations](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/llms.txt) - [OpenAPI document](https://skmtc.dev/datadog/apis/datadog-api-v2-collection/revisions/da68bf029e4c?raw)
