powerplatform_billing_policies_environments (Data Source)
Fetches the environments associated with a billing policy.
This data source uses the List Billing Policy Environments endpoint in the Power Platform API.
Example Usage
terraform {
  required_providers {
    powerplatform = {
      source = "microsoft/power-platform"
    }
  }
}
provider "powerplatform" {
  use_cli = true
}
data "powerplatform_billing_policies_environments" "all_pay_as_you_go_policy_envs" {
  billing_policy_id = "00000000-0000-0000-0000-000000000000"
}
Schema
Required
- billing_policy_id(String) The id of the billing policy
Optional
- timeouts(Attributes) (see below for nested schema)
Read-Only
- environments(Set of String) The environments associated with the billing policy
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.