powerplatform_tenant_capacity (Data Source)
Fetches the capacity information for a given tenant.
Example Usage
terraform {
required_providers {
powerplatform = {
source = "microsoft/power-platform"
}
}
}
provider "powerplatform" {
use_cli = true
}
data "powerplatform_tenant" "current" {}
data "powerplatform_tenant_capacity" "capacity" {
tenant_id = data.powerplatform_tenant.current.tenant_id
}
output "tenant_capacity" {
value = data.powerplatform_tenant_capacity.capacity
}
Schema
Required
tenant_id
(String) The tenant ID for which the capacity information is to be fetched.
Read-Only
license_model_type
(String) The license model type for which the capacity information is to be fetched.tenant_capacities
(Attributes List) The list of capacities for the given tenant. (see below for nested schema)
Nested Schema for tenant_capacities
Read-Only:
capacity_type
(String) The type of the capacity.capacity_units
(String) The units of the capacity.consumption
(Attributes) The consumption details. (see below for nested schema)max_capacity
(Number) The maximum capacity.status
(String) The status of the capacity.total_capacity
(Number) The total capacity.
Nested Schema for tenant_capacities.consumption
Read-Only:
actual
(Number) The actual consumption.actual_updated_on
(String) The actual consumption updated on.rated
(Number) The rated consumption.rated_updated_on
(String) The rated consumption updated on.