Skip to content

Data Source: azurermClientConfig

Use this data source to access the configuration of the AzureRM provider.

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 dataAzurermClientConfigCurrent =
  new azurerm.dataAzurermClientConfig.DataAzurermClientConfig(
    this,
    "current",
    {}
  );
new cdktf.TerraformOutput(this, "account_id", {
  value: dataAzurermClientConfigCurrent.clientId,
});

Argument Reference

There are no arguments available for this data source.

Attributes Reference

  • clientId is set to the Azure Client ID (Application Object ID).
  • tenantId is set to the Azure Tenant ID.
  • subscriptionId is set to the Azure Subscription ID.
  • objectId is set to the Azure Object ID.

Timeouts

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

  • read - (Defaults to 5 minutes) Used when retrieving the client config.