Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Bicep resource definition
The billingAccounts/billingRoleAssignments 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/billingRoleAssignments resource, add the following Bicep to your template.
resource symbolicname 'Microsoft.Billing/billingAccounts/billingRoleAssignments@2019-10-01-preview' = {
parent: resourceSymbolicName
name: 'string'
properties: {
principalId: 'string'
principalTenantId: 'string'
roleDefinitionId: 'string'
userAuthenticationType: 'string'
userEmailAddress: 'string'
}
}
Property Values
Microsoft.Billing/billingAccounts/billingRoleAssignments
| Name | Description | Value |
|---|---|---|
| name | The resource name | 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 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/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
Microsoft.Billing/billingAccounts/billingRoleAssignments
| Name | Description | Value |
|---|---|---|
| apiVersion | The api version | '2019-10-01-preview' |
| name | The resource name | string (required) |
| properties | The properties of the role assignment. | BillingRoleAssignmentProperties |
| type | The resource type | 'Microsoft.Billing/billingAccounts/billingRoleAssignments' |
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 |
Usage Examples
Terraform (AzAPI provider) resource definition
The billingAccounts/billingRoleAssignments 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/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 = {
properties = {
principalId = "string"
principalTenantId = "string"
roleDefinitionId = "string"
userAuthenticationType = "string"
userEmailAddress = "string"
}
}
}
Property Values
Microsoft.Billing/billingAccounts/billingRoleAssignments
| Name | Description | Value |
|---|---|---|
| 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 |
| type | The resource type | "Microsoft.Billing/billingAccounts/billingRoleAssignments@2019-10-01-preview" |
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 |