Microsoft.Billing billingAccounts/billingRoleAssignments 2019-10-01-preview

Bicep resource definition

The billingAccounts/billingRoleAssignments resource type can be deployed to:

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

Resource format

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

resource symbolicname 'Microsoft.Billing/billingAccounts/billingRoleAssignments@2019-10-01-preview' = {
  name: 'string'
  parent: resourceSymbolicName
  properties: {
    principalId: 'string'
    principalTenantId: 'string'
    roleDefinitionId: 'string'
    userAuthenticationType: 'string'
    userEmailAddress: 'string'
  }
}

Property values

billingAccounts/billingRoleAssignments

Name Description Value
name The resource name

See how to set names and types for child resources in Bicep.
string (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
properties The properties of the role assignment. BillingRoleAssignmentProperties

BillingRoleAssignmentProperties

Name Description Value
principalId The principal id of the user to whom the role was assigned. string
principalTenantId The principal tenant id of the user to whom the role was assigned. string
roleDefinitionId The ID of the role definition. string
userAuthenticationType The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement. string
userEmailAddress The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement. string

ARM template resource definition

The billingAccounts/billingRoleAssignments resource type can be deployed to:

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

Resource format

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

{
  "type": "Microsoft.Billing/billingAccounts/billingRoleAssignments",
  "apiVersion": "2019-10-01-preview",
  "name": "string",
  "properties": {
    "principalId": "string",
    "principalTenantId": "string",
    "roleDefinitionId": "string",
    "userAuthenticationType": "string",
    "userEmailAddress": "string"
  }
}

Property values

billingAccounts/billingRoleAssignments

Name Description Value
type The resource type 'Microsoft.Billing/billingAccounts/billingRoleAssignments'
apiVersion The resource api version '2019-10-01-preview'
name The resource name

See how to set names and types for child resources in JSON ARM templates.
string (required)
properties The properties of the role assignment. BillingRoleAssignmentProperties

BillingRoleAssignmentProperties

Name Description Value
principalId The principal id of the user to whom the role was assigned. string
principalTenantId The principal tenant id of the user to whom the role was assigned. string
roleDefinitionId The ID of the role definition. string
userAuthenticationType The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement. string
userEmailAddress The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement. string

Terraform (AzAPI provider) resource definition

The billingAccounts/billingRoleAssignments resource type can be deployed to:

  • Tenants

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

Resource format

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

resource "azapi_resource" "symbolicname" {
  type = "Microsoft.Billing/billingAccounts/billingRoleAssignments@2019-10-01-preview"
  name = "string"
  parent_id = "string"
  body = jsonencode({
    properties = {
      principalId = "string"
      principalTenantId = "string"
      roleDefinitionId = "string"
      userAuthenticationType = "string"
      userEmailAddress = "string"
    }
  })
}

Property values

billingAccounts/billingRoleAssignments

Name Description Value
type The resource type "Microsoft.Billing/billingAccounts/billingRoleAssignments@2019-10-01-preview"
name The resource name string (required)
parent_id The ID of the resource that is the parent for this resource. ID for resource of type: billingAccounts
properties The properties of the role assignment. BillingRoleAssignmentProperties

BillingRoleAssignmentProperties

Name Description Value
principalId The principal id of the user to whom the role was assigned. string
principalTenantId The principal tenant id of the user to whom the role was assigned. string
roleDefinitionId The ID of the role definition. string
userAuthenticationType The authentication type of the user, whether Organization or MSA, of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement. string
userEmailAddress The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement. string