Use this data source to access the configuration of the AzureRM provider.
data "azurerm_client_config" "current" {
}
output "account_id" {
value = data.azurerm_client_config.current.client_id
}
There are no arguments available for this data source.
client_id
is set to the Azure Client ID (Application Object ID).tenant_id
is set to the Azure Tenant ID.subscription_id
is set to the Azure Subscription ID.object_id
is set to the Azure Object ID.The timeouts
block allows you to specify timeouts for certain actions:
read
- (Defaults to 5 minutes) Used when retrieving the client config.