Skip to content

Data Source: azurermBillingMpaAccountScope

Use this data source to access an ID for your MPA 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 dataAzurermBillingMpaAccountScopeExample =
  new azurerm.dataAzurermBillingMpaAccountScope.DataAzurermBillingMpaAccountScope(
    this,
    "example",
    {
      billing_account_name:
        "e879cf0f-2b4d-5431-109a-f72fc9868693:024cabf4-7321-4cf9-be59-df0c77ca51de_2019-05-31",
      customer_name: "2281f543-7321-4cf9-1e23-edb4Oc31a31c",
    }
  );
new cdktf.TerraformOutput(this, "id", {
  value: dataAzurermBillingMpaAccountScopeExample.id,
});

Arguments Reference

The following arguments are supported:

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

  • customerName - (Required) The Customer Name in the above Billing Account.

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.