powerplatform_billing_policy (Resource)
Manages a Power Platform Billing Policy.
A Power Platform billing policy is a mechanism that allows you to manage the costs associated with your Power Platform usage. It's linked to an Azure subscription and is used to set up pay-as-you-go billing for an environment.
Additional Resources:
Example Usage
terraform {
required_providers {
powerplatform = {
source = "microsoft/power-platform"
}
}
}
provider "powerplatform" {
use_cli = true
}
resource "powerplatform_billing_policy" "pay_as_you_go" {
name = "payAsYouGoBillingPolicyExample"
location = "europe"
status = "Enabled"
billing_instrument = {
resource_group = "resource_group_name"
subscription_id = "00000000-0000-0000-0000-000000000000"
}
}
Schema
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_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