published on Monday, May 18, 2026 by rpothin
published on Monday, May 18, 2026 by rpothin
Manages a Power Platform billing policy. Billing policies control pay-as-you-go billing for Power Platform environments.
Create BillingPolicy Resource
Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.
Constructor syntax
new BillingPolicy(name: string, args: BillingPolicyArgs, opts?: CustomResourceOptions);@overload
def BillingPolicy(resource_name: str,
args: BillingPolicyArgs,
opts: Optional[ResourceOptions] = None)
@overload
def BillingPolicy(resource_name: str,
opts: Optional[ResourceOptions] = None,
location: Optional[str] = None,
name: Optional[str] = None,
billing_instrument: Optional[BillingInstrumentArgs] = None,
status: Optional[str] = None)func NewBillingPolicy(ctx *Context, name string, args BillingPolicyArgs, opts ...ResourceOption) (*BillingPolicy, error)public BillingPolicy(string name, BillingPolicyArgs args, CustomResourceOptions? opts = null)
public BillingPolicy(String name, BillingPolicyArgs args)
public BillingPolicy(String name, BillingPolicyArgs args, CustomResourceOptions options)
type: powerplatform:BillingPolicy
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.
resource "powerplatform_billingpolicy" "name" {
# resource properties
}Parameters
- name string
- The unique name of the resource.
- args BillingPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- resource_name str
- The unique name of the resource.
- args BillingPolicyArgs
- The arguments to resource properties.
- opts ResourceOptions
- Bag of options to control resource's behavior.
- ctx Context
- Context object for the current deployment.
- name string
- The unique name of the resource.
- args BillingPolicyArgs
- The arguments to resource properties.
- opts ResourceOption
- Bag of options to control resource's behavior.
- name string
- The unique name of the resource.
- args BillingPolicyArgs
- The arguments to resource properties.
- opts CustomResourceOptions
- Bag of options to control resource's behavior.
- name String
- The unique name of the resource.
- args BillingPolicyArgs
- The arguments to resource properties.
- options CustomResourceOptions
- Bag of options to control resource's behavior.
Constructor example
The following reference example uses placeholder values for all input properties.
var billingPolicyResource = new Powerplatform.BillingPolicy("billingPolicyResource", new()
{
Location = "string",
Name = "string",
BillingInstrument = new Powerplatform.Inputs.BillingInstrumentArgs
{
Id = "string",
ResourceGroup = "string",
SubscriptionId = "string",
},
Status = "string",
});
example, err := powerplatform.NewBillingPolicy(ctx, "billingPolicyResource", &powerplatform.BillingPolicyArgs{
Location: pulumi.String("string"),
Name: pulumi.String("string"),
BillingInstrument: &powerplatform.BillingInstrumentArgs{
Id: pulumi.String("string"),
ResourceGroup: pulumi.String("string"),
SubscriptionId: pulumi.String("string"),
},
Status: pulumi.String("string"),
})
resource "powerplatform_billingpolicy" "billingPolicyResource" {
location = "string"
name = "string"
billing_instrument = {
id = "string"
resource_group = "string"
subscription_id = "string"
}
status = "string"
}
var billingPolicyResource = new BillingPolicy("billingPolicyResource", BillingPolicyArgs.builder()
.location("string")
.name("string")
.billingInstrument(BillingInstrumentArgs.builder()
.id("string")
.resourceGroup("string")
.subscriptionId("string")
.build())
.status("string")
.build());
billing_policy_resource = powerplatform.BillingPolicy("billingPolicyResource",
location="string",
name="string",
billing_instrument={
"id": "string",
"resource_group": "string",
"subscription_id": "string",
},
status="string")
const billingPolicyResource = new powerplatform.BillingPolicy("billingPolicyResource", {
location: "string",
name: "string",
billingInstrument: {
id: "string",
resourceGroup: "string",
subscriptionId: "string",
},
status: "string",
});
type: powerplatform:BillingPolicy
properties:
billingInstrument:
id: string
resourceGroup: string
subscriptionId: string
location: string
name: string
status: string
BillingPolicy Resource Properties
To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.
Inputs
In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.
The BillingPolicy resource accepts the following input properties:
- Location string
- The geographic location for the billing policy (e.g., unitedstates, europe).
- Name string
- The name of the billing policy.
- Billing
Instrument BillingInstrument - The billing instrument (Azure subscription) details.
- Status string
- The status of the billing policy: Enabled or Disabled.
- Location string
- The geographic location for the billing policy (e.g., unitedstates, europe).
- Name string
- The name of the billing policy.
- Billing
Instrument BillingInstrument Args - The billing instrument (Azure subscription) details.
- Status string
- The status of the billing policy: Enabled or Disabled.
- location string
- The geographic location for the billing policy (e.g., unitedstates, europe).
- name string
- The name of the billing policy.
- billing_
instrument object - The billing instrument (Azure subscription) details.
- status string
- The status of the billing policy: Enabled or Disabled.
- location String
- The geographic location for the billing policy (e.g., unitedstates, europe).
- name String
- The name of the billing policy.
- billing
Instrument BillingInstrument - The billing instrument (Azure subscription) details.
- status String
- The status of the billing policy: Enabled or Disabled.
- location string
- The geographic location for the billing policy (e.g., unitedstates, europe).
- name string
- The name of the billing policy.
- billing
Instrument BillingInstrument - The billing instrument (Azure subscription) details.
- status string
- The status of the billing policy: Enabled or Disabled.
- location str
- The geographic location for the billing policy (e.g., unitedstates, europe).
- name str
- The name of the billing policy.
- billing_
instrument BillingInstrument Args - The billing instrument (Azure subscription) details.
- status str
- The status of the billing policy: Enabled or Disabled.
- location String
- The geographic location for the billing policy (e.g., unitedstates, europe).
- name String
- The name of the billing policy.
- billing
Instrument Property Map - The billing instrument (Azure subscription) details.
- status String
- The status of the billing policy: Enabled or Disabled.
Outputs
All input properties are implicitly available as output properties. Additionally, the BillingPolicy resource produces the following output properties:
- Id string
- The provider-assigned unique ID for this managed resource.
- Created
On string - The timestamp when the billing policy was created.
- Last
Modified stringOn - The timestamp when the billing policy was last modified.
- Id string
- The provider-assigned unique ID for this managed resource.
- Created
On string - The timestamp when the billing policy was created.
- Last
Modified stringOn - The timestamp when the billing policy was last modified.
- id string
- The provider-assigned unique ID for this managed resource.
- created_
on string - The timestamp when the billing policy was created.
- last_
modified_ stringon - The timestamp when the billing policy was last modified.
- id String
- The provider-assigned unique ID for this managed resource.
- created
On String - The timestamp when the billing policy was created.
- last
Modified StringOn - The timestamp when the billing policy was last modified.
- id string
- The provider-assigned unique ID for this managed resource.
- created
On string - The timestamp when the billing policy was created.
- last
Modified stringOn - The timestamp when the billing policy was last modified.
- id str
- The provider-assigned unique ID for this managed resource.
- created_
on str - The timestamp when the billing policy was created.
- last_
modified_ stron - The timestamp when the billing policy was last modified.
- id String
- The provider-assigned unique ID for this managed resource.
- created
On String - The timestamp when the billing policy was created.
- last
Modified StringOn - The timestamp when the billing policy was last modified.
Supporting Types
BillingInstrument, BillingInstrumentArgs
Azure billing instrument (subscription) details for a billing policy.- Id string
- The billing instrument identifier.
- Resource
Group string - The Azure resource group within the subscription.
- Subscription
Id string - The Azure subscription ID.
- Id string
- The billing instrument identifier.
- Resource
Group string - The Azure resource group within the subscription.
- Subscription
Id string - The Azure subscription ID.
- id string
- The billing instrument identifier.
- resource_
group string - The Azure resource group within the subscription.
- subscription_
id string - The Azure subscription ID.
- id String
- The billing instrument identifier.
- resource
Group String - The Azure resource group within the subscription.
- subscription
Id String - The Azure subscription ID.
- id string
- The billing instrument identifier.
- resource
Group string - The Azure resource group within the subscription.
- subscription
Id string - The Azure subscription ID.
- id str
- The billing instrument identifier.
- resource_
group str - The Azure resource group within the subscription.
- subscription_
id str - The Azure subscription ID.
- id String
- The billing instrument identifier.
- resource
Group String - The Azure resource group within the subscription.
- subscription
Id String - The Azure subscription ID.
Package Details
- Repository
- powerplatform rpothin/pulumi-powerplatform
- License
- MIT
published on Monday, May 18, 2026 by rpothin