1. Packages
  2. Packages
  3. Power Platform
  4. API Docs
  5. BillingPolicy
Viewing docs for Power Platform v0.3.3
published on Monday, May 18, 2026 by rpothin
powerplatform logo
Viewing docs for Power Platform v0.3.3
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.
    BillingInstrument 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.
    BillingInstrument BillingInstrumentArgs
    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.
    billingInstrument 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.
    billingInstrument 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 BillingInstrumentArgs
    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.
    billingInstrument 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.
    CreatedOn string
    The timestamp when the billing policy was created.
    LastModifiedOn string
    The timestamp when the billing policy was last modified.
    Id string
    The provider-assigned unique ID for this managed resource.
    CreatedOn string
    The timestamp when the billing policy was created.
    LastModifiedOn string
    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_on string
    The timestamp when the billing policy was last modified.
    id String
    The provider-assigned unique ID for this managed resource.
    createdOn String
    The timestamp when the billing policy was created.
    lastModifiedOn String
    The timestamp when the billing policy was last modified.
    id string
    The provider-assigned unique ID for this managed resource.
    createdOn string
    The timestamp when the billing policy was created.
    lastModifiedOn string
    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_on str
    The timestamp when the billing policy was last modified.
    id String
    The provider-assigned unique ID for this managed resource.
    createdOn String
    The timestamp when the billing policy was created.
    lastModifiedOn String
    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.
    ResourceGroup string
    The Azure resource group within the subscription.
    SubscriptionId string
    The Azure subscription ID.
    Id string
    The billing instrument identifier.
    ResourceGroup string
    The Azure resource group within the subscription.
    SubscriptionId 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.
    resourceGroup String
    The Azure resource group within the subscription.
    subscriptionId String
    The Azure subscription ID.
    id string
    The billing instrument identifier.
    resourceGroup string
    The Azure resource group within the subscription.
    subscriptionId 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.
    resourceGroup String
    The Azure resource group within the subscription.
    subscriptionId String
    The Azure subscription ID.

    Package Details

    Repository
    powerplatform rpothin/pulumi-powerplatform
    License
    MIT
    powerplatform logo
    Viewing docs for Power Platform v0.3.3
    published on Monday, May 18, 2026 by rpothin

      Try Pulumi Cloud free.
      Your team will thank you.

      Start free trial