Share via


Microsoft.Billing billingAccounts

Bicep resource definition

The billingAccounts resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Billing/billingAccounts resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.Billing/billingAccounts@2024-04-01' = {
  scope: resourceSymbolicName or scope
  name: 'string'
}

Property Values

Microsoft.Billing/billingAccounts

Name Description Value
name The resource name string

Constraints:
Pattern = ^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$ (required)
scope Use when creating a resource at a scope that is different than the deployment scope. Set this property to the symbolic name of a resource to apply the extension resource.

ARM template resource definition

The billingAccounts resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Billing/billingAccounts resource, add the following JSON to your template.

{
  "type": "Microsoft.Billing/billingAccounts",
  "apiVersion": "2024-04-01",
  "name": "string"
}

Property Values

Microsoft.Billing/billingAccounts

Name Description Value
apiVersion The api version '2024-04-01'
name The resource name string

Constraints:
Pattern = ^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$ (required)
type The resource type 'Microsoft.Billing/billingAccounts'

Usage Examples

Terraform (AzAPI provider) resource definition

The billingAccounts resource type can be deployed with operations that target:

For a list of changed properties in each API version, see change log.

Resource format

To create a Microsoft.Billing/billingAccounts resource, add the following Terraform to your template.

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Billing/billingAccounts@2024-04-01"
  name = "string"
  parent_id = "string"
}

Property Values

Microsoft.Billing/billingAccounts

Name Description Value
name The resource name string

Constraints:
Pattern = ^([0-9]+|([Pp][Cc][Nn]\.[A-Za-z0-9]+)|[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}(:[0-9A-Fa-f]{8}-([0-9A-Fa-f]{4}-){3}[0-9A-Fa-f]{12}_[0-9]{4}(-[0-9]{2}){2})?)$ (required)
parent_id The ID of the resource to apply this extension resource to. string (required)
type The resource type "Microsoft.Billing/billingAccounts@2024-04-01"