Provide a data source to retrieve tenant capacity data.
Resource
Resource Name: powerplatform_tenant_capacity
API documentation: See API section below
Estimated complexity/effort: Moderate. Unclear if we need additional scopes for this API
Related resources/data sources:
Potential Terraform Configuration
# Sample Terraform config that describes how the new resource might look.
data "powerplatform_tenant_capacity" "example_capacity" {
tenant_id = "" #required
capacity_type = "value1" #optional
}
Not everything from the json needs to be exposed. May exclude capacityEntitlements and overflowCapacity from initial implementation. Can add those as an enhancement if we have future requests for this capability.
Description
Provide a data source to retrieve tenant capacity data.
Resource
Potential Terraform Configuration
API
https://licensing.powerplatform.microsoft.com/v0.1-alpha/tenants/4481d6dc-0f72-4841-a3a9-0000000000000/TenantCapacity
Not everything from the json needs to be exposed. May exclude
capacityEntitlements
andoverflowCapacity
from initial implementation. Can add those as an enhancement if we have future requests for this capability.Definition of Done
make docs
Contributions
Do you plan to raise a PR to address this issue? NO
See the contributing guide for more information about what's expected for contributions.