Microsoft.Billing billingAccounts/billingProfiles/policies

Bicep resource definition

The billingAccounts/billingProfiles/policies 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/billingProfiles/policies resource, add the following Bicep to your template.

resource symbolicname 'Microsoft.Billing/billingAccounts/billingProfiles/policies@2024-04-01' = {
  parent: resourceSymbolicName
  name: 'default'
  properties: {
    enterpriseAgreementPolicies: {
      accountOwnerViewCharges: 'string'
      authenticationType: 'string'
      departmentAdminViewCharges: 'string'
    }
    invoiceSectionLabelManagement: 'string'
    marketplacePurchases: 'string'
    policies: [
      {
        name: 'string'
        policyType: 'string'
        scope: 'string'
        value: 'string'
      }
    ]
    reservationPurchases: 'string'
    savingsPlanPurchases: 'string'
    viewCharges: 'string'
  }
  tags: {
    {customized property}: 'string'
  }
}

Property values

BillingProfilePolicyProperties

Name Description Value
enterpriseAgreementPolicies The policies for Enterprise Agreement enrollments. BillingProfilePolicyPropertiesEnterpriseAgreementPolicies
invoiceSectionLabelManagement The policy that controls invoice section label management at invoice section scope. This is allowed by default. 'Allowed'
'NotAllowed'
'Other'
marketplacePurchases The policy that controls whether Azure marketplace purchases are allowed. 'AllAllowed'
'Disabled'
'NotAllowed'
'OnlyFreeAllowed'
'Other'
policies List of all policies defined at the billing scope. PolicySummary[]
reservationPurchases The policy that controls whether Azure reservation purchases are allowed. 'Allowed'
'Disabled'
'NotAllowed'
'Other'
savingsPlanPurchases The policy that controls whether users with Azure savings plan purchase are allowed. 'Allowed'
'Disabled'
'NotAllowed'
'Other'
viewCharges The policy that controls whether the users in customer's organization can view charges at pay-as-you-go prices. 'Allowed'
'NotAllowed'
'Other'

BillingProfilePolicyPropertiesEnterpriseAgreementPolicies

Name Description Value
accountOwnerViewCharges The policy that controls whether account owner can view charges. 'Allowed'
'Disabled'
'NotAllowed'
'Other'
authenticationType The state showing the enrollment auth level. 'MicrosoftAccountOnly'
'MixedAccount'
'OrganizationalAccountCrossTenant'
'OrganizationalAccountOnly'
'Other'
departmentAdminViewCharges The policy that controls whether department admin can view charges. 'Allowed'
'Disabled'
'NotAllowed'
'Other'

Microsoft.Billing/billingAccounts/billingProfiles/policies

Name Description Value
name The resource name 'default' (required)
parent In Bicep, you can specify the parent resource for a child resource. You only need to add this property when the child resource is declared outside of the parent resource.

For more information, see Child resource outside parent resource.
Symbolic name for resource of type: billingAccounts/billingProfiles
properties A policy at billing profile scope. BillingProfilePolicyProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates

PolicySummary

Name Description Value
name The name of the policy. string
policyType The type of the policy. 'Other'
'SystemControlled'
'UserControlled'
scope The scope at which the policy is defined. string
value The value of the policy. string

ProxyResourceWithTags

Name Description Value

ARM template resource definition

The billingAccounts/billingProfiles/policies 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/billingProfiles/policies resource, add the following JSON to your template.

{
  "type": "Microsoft.Billing/billingAccounts/billingProfiles/policies",
  "apiVersion": "2024-04-01",
  "name": "string",
  "properties": {
    "enterpriseAgreementPolicies": {
      "accountOwnerViewCharges": "string",
      "authenticationType": "string",
      "departmentAdminViewCharges": "string"
    },
    "invoiceSectionLabelManagement": "string",
    "marketplacePurchases": "string",
    "policies": [
      {
        "name": "string",
        "policyType": "string",
        "scope": "string",
        "value": "string"
      }
    ],
    "reservationPurchases": "string",
    "savingsPlanPurchases": "string",
    "viewCharges": "string"
  },
  "tags": {
    "{customized property}": "string"
  }
}

Property values

BillingProfilePolicyProperties

Name Description Value
enterpriseAgreementPolicies The policies for Enterprise Agreement enrollments. BillingProfilePolicyPropertiesEnterpriseAgreementPolicies
invoiceSectionLabelManagement The policy that controls invoice section label management at invoice section scope. This is allowed by default. 'Allowed'
'NotAllowed'
'Other'
marketplacePurchases The policy that controls whether Azure marketplace purchases are allowed. 'AllAllowed'
'Disabled'
'NotAllowed'
'OnlyFreeAllowed'
'Other'
policies List of all policies defined at the billing scope. PolicySummary[]
reservationPurchases The policy that controls whether Azure reservation purchases are allowed. 'Allowed'
'Disabled'
'NotAllowed'
'Other'
savingsPlanPurchases The policy that controls whether users with Azure savings plan purchase are allowed. 'Allowed'
'Disabled'
'NotAllowed'
'Other'
viewCharges The policy that controls whether the users in customer's organization can view charges at pay-as-you-go prices. 'Allowed'
'NotAllowed'
'Other'

BillingProfilePolicyPropertiesEnterpriseAgreementPolicies

Name Description Value
accountOwnerViewCharges The policy that controls whether account owner can view charges. 'Allowed'
'Disabled'
'NotAllowed'
'Other'
authenticationType The state showing the enrollment auth level. 'MicrosoftAccountOnly'
'MixedAccount'
'OrganizationalAccountCrossTenant'
'OrganizationalAccountOnly'
'Other'
departmentAdminViewCharges The policy that controls whether department admin can view charges. 'Allowed'
'Disabled'
'NotAllowed'
'Other'

Microsoft.Billing/billingAccounts/billingProfiles/policies

Name Description Value
apiVersion The api version '2024-04-01'
name The resource name 'default' (required)
properties A policy at billing profile scope. BillingProfilePolicyProperties
tags Resource tags Dictionary of tag names and values. See Tags in templates
type The resource type 'Microsoft.Billing/billingAccounts/billingProfiles/policies'

PolicySummary

Name Description Value
name The name of the policy. string
policyType The type of the policy. 'Other'
'SystemControlled'
'UserControlled'
scope The scope at which the policy is defined. string
value The value of the policy. string

ProxyResourceWithTags

Name Description Value

Terraform (AzAPI provider) resource definition

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

  • Tenant

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

Resource format

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Billing/billingAccounts/billingProfiles/policies@2024-04-01"
  name = "string"
  tags = {
    {customized property} = "string"
  }
  body = jsonencode({
    properties = {
      enterpriseAgreementPolicies = {
        accountOwnerViewCharges = "string"
        authenticationType = "string"
        departmentAdminViewCharges = "string"
      }
      invoiceSectionLabelManagement = "string"
      marketplacePurchases = "string"
      policies = [
        {
          name = "string"
          policyType = "string"
          scope = "string"
          value = "string"
        }
      ]
      reservationPurchases = "string"
      savingsPlanPurchases = "string"
      viewCharges = "string"
    }
  })
}

Property values

BillingProfilePolicyProperties

Name Description Value
enterpriseAgreementPolicies The policies for Enterprise Agreement enrollments. BillingProfilePolicyPropertiesEnterpriseAgreementPolicies
invoiceSectionLabelManagement The policy that controls invoice section label management at invoice section scope. This is allowed by default. 'Allowed'
'NotAllowed'
'Other'
marketplacePurchases The policy that controls whether Azure marketplace purchases are allowed. 'AllAllowed'
'Disabled'
'NotAllowed'
'OnlyFreeAllowed'
'Other'
policies List of all policies defined at the billing scope. PolicySummary[]
reservationPurchases The policy that controls whether Azure reservation purchases are allowed. 'Allowed'
'Disabled'
'NotAllowed'
'Other'
savingsPlanPurchases The policy that controls whether users with Azure savings plan purchase are allowed. 'Allowed'
'Disabled'
'NotAllowed'
'Other'
viewCharges The policy that controls whether the users in customer's organization can view charges at pay-as-you-go prices. 'Allowed'
'NotAllowed'
'Other'

BillingProfilePolicyPropertiesEnterpriseAgreementPolicies

Name Description Value
accountOwnerViewCharges The policy that controls whether account owner can view charges. 'Allowed'
'Disabled'
'NotAllowed'
'Other'
authenticationType The state showing the enrollment auth level. 'MicrosoftAccountOnly'
'MixedAccount'
'OrganizationalAccountCrossTenant'
'OrganizationalAccountOnly'
'Other'
departmentAdminViewCharges The policy that controls whether department admin can view charges. 'Allowed'
'Disabled'
'NotAllowed'
'Other'

Microsoft.Billing/billingAccounts/billingProfiles/policies

Name Description Value
name The resource name 'default' (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: billingAccounts/billingProfiles
properties A policy at billing profile scope. BillingProfilePolicyProperties
tags Resource tags Dictionary of tag names and values.
type The resource type "Microsoft.Billing/billingAccounts/billingProfiles/policies@2024-04-01"

PolicySummary

Name Description Value
name The name of the policy. string
policyType The type of the policy. 'Other'
'SystemControlled'
'UserControlled'
scope The scope at which the policy is defined. string
value The value of the policy. string

ProxyResourceWithTags

Name Description Value