Skip to content

Data Source: azurermBillingMcaAccountScope

Use this data source to access an ID for your MCA Account billing scope.

Example Usage

import * as cdktf from "cdktf";
/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const dataAzurermBillingMcaAccountScopeExample =
  new azurerm.dataAzurermBillingMcaAccountScope.DataAzurermBillingMcaAccountScope(
    this,
    "example",
    {
      billing_account_name:
        "e879cf0f-2b4d-5431-109a-f72fc9868693:024cabf4-7321-4cf9-be59-df0c77ca51de_2019-05-31",
      billing_profile_name: "PE2Q-NOIT-BG7-TGB",
      invoice_section_name: "MTT4-OBS7-PJA-TGB",
    }
  );
new cdktf.TerraformOutput(this, "id", {
  value: dataAzurermBillingMcaAccountScopeExample.id,
});

Arguments Reference

The following arguments are supported:

  • billingAccountName - (Required) The Billing Account Name of the MCA account.

  • billingProfileName - (Required) The Billing Profile Name in the above Billing Account.

  • invoiceSectionName - (Required) The Invoice Section Name in the above Billing Profile.

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:

  • id - The ID of the Billing Scope.

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

  • read - (Defaults to 5 minutes) Used when retrieving the Billing Scope.