powerplatform_billing_policies (Data Source)
Fetches the list of billing policies in a tenant. A billing policy is a set of rules that define how a tenant is billed for usage of Power Platform services. A billing policy is associated with a billing instrument, which is a subscription and resource group that is used to pay for usage of Power Platform services.
Example Usage
terraform {
required_providers {
powerplatform = {
source = "microsoft/power-platform"
}
}
}
provider "powerplatform" {
use_cli = true
}
data "powerplatform_billing_policies" "all_policies" {}
Schema
Optional
timeouts
(Attributes) (see below for nested schema)
Read-Only
billing_policies
(Attributes List) Power Platform Billing Policy (see below for nested schema)id
(Number) Id of the read operation
Nested Schema for timeouts
Optional:
read
(String) A string that can be parsed as a duration consisting of numbers and unit suffixes, such as "30s" or "2h45m". Valid time units are "s" (seconds), "m" (minutes), "h" (hours). Read operations occur during any refresh or planning operation when refresh is enabled.
Nested Schema for billing_policies
Required:
billing_instrument
(Attributes) The billing instrument of the billing policy (see below for nested schema)location
(String) The location of the billing policyname
(String) The name of the billing policy
Optional:
status
(String) The status of the billing policy (Enabled, Disabled)
Read-Only:
id
(String) The id of the billing policy
Nested Schema for billing_policies.billing_instrument
Required:
resource_group
(String) The resource group of the billing instrumentsubscription_id
(String) The subscription id of the billing instrument
Read-Only:
id
(String) The id of the billing instrument