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

Read-Only

  • environments (Set of String) The environments associated with the billing policy