billing_role_assignments
Creates, updates, deletes, gets or lists a billing_role_assignments resource.
Overview
| Name | billing_role_assignments |
| Type | Resource |
| Id | azure.billing.billing_role_assignments |
Fields
The following fields are returned by SELECT queries:
- get_by_customer
- get_by_invoice_section
- list_by_customer
- list_by_invoice_section
- get_by_billing_profile
- get_by_department
- get_by_enrollment_account
- list_by_billing_profile
- list_by_department
- list_by_enrollment_account
- get_by_billing_account
- list_by_billing_account
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
billingAccountDisplayName | string | The name of the billing account. |
billingAccountId | string | The fully qualified ID that uniquely identifies a billing account. |
billingProfileDisplayName | string | The name of the billing profile. |
billingProfileId | string | The fully qualified ID that uniquely identifies a billing profile. |
billingRequestId | string | The ID of the billing request that was created for the role assignment. This is only applicable to cross tenant role assignments or role assignments created through the billing request. |
createdByPrincipalId | string | The object ID of the user who created the role assignment. |
createdByPrincipalPuid | string | The principal PUID of the user who created the role assignment. |
createdByPrincipalTenantId | string | The tenant Id of the user who created the role assignment. |
createdByUserEmailAddress | string | The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement. |
createdOn | string (date-time) | The date the role assignment was created. |
customerDisplayName | string | The name of the customer. |
customerId | string | The fully qualified ID that uniquely identifies a customer. |
invoiceSectionDisplayName | string | The name of the invoice section. |
invoiceSectionId | string | The fully qualified ID that uniquely identifies an invoice section. |
modifiedByPrincipalId | string | The principal PUID of the user who modified the role assignment. |
modifiedByPrincipalPuid | string | The principal PUID of the user who modified the role assignment. |
modifiedByPrincipalTenantId | string | The tenant Id of the user who modified the role assignment. |
modifiedByUserEmailAddress | string | The email address of the user who modified the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement. |
modifiedOn | string (date-time) | The date the role assignment was modified. |
principalDisplayName | string | The display name of the principal to whom the role was assigned. |
principalId | string | The object id of the user to whom the role was assigned. |
principalPuid | string | The principal PUID of the user to whom the role was assigned. |
principalTenantId | string | The principal tenant id of the user to whom the role was assigned. |
principalTenantName | string | The friendly name of the tenant of the user to whom the role was assigned. This will be 'Primary Tenant' for the primary tenant of the billing account. |
principalType | string | The type of a role Assignment. Known values are: "Unknown", "None", "User", "Group", "DirectoryRole", "ServicePrincipal", and "Everyone". (Unknown, None, User, Group, DirectoryRole, ServicePrincipal, Everyone) |
provisioningState | string | The provisioning state of the resource during a long-running operation. Known values are: "Succeeded", "Canceled", "Failed", "New", "Pending", "Provisioning", "PendingBilling", "ConfirmedBilling", "Creating", "Created", and "Expired". (Succeeded, Canceled, Failed, New, Pending, Provisioning, PendingBilling, ConfirmedBilling, Creating, Created, Expired) |
roleDefinitionId | string | The ID of the role definition. Required. |
scope | string | The scope at which the role was assigned. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
userAuthenticationType | string | 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. |
userEmailAddress | string | The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement. |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
billingAccountDisplayName | string | The name of the billing account. |
billingAccountId | string | The fully qualified ID that uniquely identifies a billing account. |
billingProfileDisplayName | string | The name of the billing profile. |
billingProfileId | string | The fully qualified ID that uniquely identifies a billing profile. |
billingRequestId | string | The ID of the billing request that was created for the role assignment. This is only applicable to cross tenant role assignments or role assignments created through the billing request. |
createdByPrincipalId | string | The object ID of the user who created the role assignment. |
createdByPrincipalPuid | string | The principal PUID of the user who created the role assignment. |
createdByPrincipalTenantId | string | The tenant Id of the user who created the role assignment. |
createdByUserEmailAddress | string | The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement. |
createdOn | string (date-time) | The date the role assignment was created. |
customerDisplayName | string | The name of the customer. |
customerId | string | The fully qualified ID that uniquely identifies a customer. |
invoiceSectionDisplayName | string | The name of the invoice section. |
invoiceSectionId | string | The fully qualified ID that uniquely identifies an invoice section. |
modifiedByPrincipalId | string | The principal PUID of the user who modified the role assignment. |
modifiedByPrincipalPuid | string | The principal PUID of the user who modified the role assignment. |
modifiedByPrincipalTenantId | string | The tenant Id of the user who modified the role assignment. |
modifiedByUserEmailAddress | string | The email address of the user who modified the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement. |
modifiedOn | string (date-time) | The date the role assignment was modified. |
principalDisplayName | string | The display name of the principal to whom the role was assigned. |
principalId | string | The object id of the user to whom the role was assigned. |
principalPuid | string | The principal PUID of the user to whom the role was assigned. |
principalTenantId | string | The principal tenant id of the user to whom the role was assigned. |
principalTenantName | string | The friendly name of the tenant of the user to whom the role was assigned. This will be 'Primary Tenant' for the primary tenant of the billing account. |
principalType | string | The type of a role Assignment. Known values are: "Unknown", "None", "User", "Group", "DirectoryRole", "ServicePrincipal", and "Everyone". (Unknown, None, User, Group, DirectoryRole, ServicePrincipal, Everyone) |
provisioningState | string | The provisioning state of the resource during a long-running operation. Known values are: "Succeeded", "Canceled", "Failed", "New", "Pending", "Provisioning", "PendingBilling", "ConfirmedBilling", "Creating", "Created", and "Expired". (Succeeded, Canceled, Failed, New, Pending, Provisioning, PendingBilling, ConfirmedBilling, Creating, Created, Expired) |
roleDefinitionId | string | The ID of the role definition. Required. |
scope | string | The scope at which the role was assigned. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
userAuthenticationType | string | 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. |
userEmailAddress | string | The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement. |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
billingAccountDisplayName | string | The name of the billing account. |
billingAccountId | string | The fully qualified ID that uniquely identifies a billing account. |
billingProfileDisplayName | string | The name of the billing profile. |
billingProfileId | string | The fully qualified ID that uniquely identifies a billing profile. |
billingRequestId | string | The ID of the billing request that was created for the role assignment. This is only applicable to cross tenant role assignments or role assignments created through the billing request. |
createdByPrincipalId | string | The object ID of the user who created the role assignment. |
createdByPrincipalPuid | string | The principal PUID of the user who created the role assignment. |
createdByPrincipalTenantId | string | The tenant Id of the user who created the role assignment. |
createdByUserEmailAddress | string | The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement. |
createdOn | string (date-time) | The date the role assignment was created. |
customerDisplayName | string | The name of the customer. |
customerId | string | The fully qualified ID that uniquely identifies a customer. |
invoiceSectionDisplayName | string | The name of the invoice section. |
invoiceSectionId | string | The fully qualified ID that uniquely identifies an invoice section. |
modifiedByPrincipalId | string | The principal PUID of the user who modified the role assignment. |
modifiedByPrincipalPuid | string | The principal PUID of the user who modified the role assignment. |
modifiedByPrincipalTenantId | string | The tenant Id of the user who modified the role assignment. |
modifiedByUserEmailAddress | string | The email address of the user who modified the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement. |
modifiedOn | string (date-time) | The date the role assignment was modified. |
principalDisplayName | string | The display name of the principal to whom the role was assigned. |
principalId | string | The object id of the user to whom the role was assigned. |
principalPuid | string | The principal PUID of the user to whom the role was assigned. |
principalTenantId | string | The principal tenant id of the user to whom the role was assigned. |
principalTenantName | string | The friendly name of the tenant of the user to whom the role was assigned. This will be 'Primary Tenant' for the primary tenant of the billing account. |
principalType | string | The type of a role Assignment. Known values are: "Unknown", "None", "User", "Group", "DirectoryRole", "ServicePrincipal", and "Everyone". (Unknown, None, User, Group, DirectoryRole, ServicePrincipal, Everyone) |
provisioningState | string | The provisioning state of the resource during a long-running operation. Known values are: "Succeeded", "Canceled", "Failed", "New", "Pending", "Provisioning", "PendingBilling", "ConfirmedBilling", "Creating", "Created", and "Expired". (Succeeded, Canceled, Failed, New, Pending, Provisioning, PendingBilling, ConfirmedBilling, Creating, Created, Expired) |
roleDefinitionId | string | The ID of the role definition. Required. |
scope | string | The scope at which the role was assigned. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
userAuthenticationType | string | 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. |
userEmailAddress | string | The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement. |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
billingAccountDisplayName | string | The name of the billing account. |
billingAccountId | string | The fully qualified ID that uniquely identifies a billing account. |
billingProfileDisplayName | string | The name of the billing profile. |
billingProfileId | string | The fully qualified ID that uniquely identifies a billing profile. |
billingRequestId | string | The ID of the billing request that was created for the role assignment. This is only applicable to cross tenant role assignments or role assignments created through the billing request. |
createdByPrincipalId | string | The object ID of the user who created the role assignment. |
createdByPrincipalPuid | string | The principal PUID of the user who created the role assignment. |
createdByPrincipalTenantId | string | The tenant Id of the user who created the role assignment. |
createdByUserEmailAddress | string | The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement. |
createdOn | string (date-time) | The date the role assignment was created. |
customerDisplayName | string | The name of the customer. |
customerId | string | The fully qualified ID that uniquely identifies a customer. |
invoiceSectionDisplayName | string | The name of the invoice section. |
invoiceSectionId | string | The fully qualified ID that uniquely identifies an invoice section. |
modifiedByPrincipalId | string | The principal PUID of the user who modified the role assignment. |
modifiedByPrincipalPuid | string | The principal PUID of the user who modified the role assignment. |
modifiedByPrincipalTenantId | string | The tenant Id of the user who modified the role assignment. |
modifiedByUserEmailAddress | string | The email address of the user who modified the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement. |
modifiedOn | string (date-time) | The date the role assignment was modified. |
principalDisplayName | string | The display name of the principal to whom the role was assigned. |
principalId | string | The object id of the user to whom the role was assigned. |
principalPuid | string | The principal PUID of the user to whom the role was assigned. |
principalTenantId | string | The principal tenant id of the user to whom the role was assigned. |
principalTenantName | string | The friendly name of the tenant of the user to whom the role was assigned. This will be 'Primary Tenant' for the primary tenant of the billing account. |
principalType | string | The type of a role Assignment. Known values are: "Unknown", "None", "User", "Group", "DirectoryRole", "ServicePrincipal", and "Everyone". (Unknown, None, User, Group, DirectoryRole, ServicePrincipal, Everyone) |
provisioningState | string | The provisioning state of the resource during a long-running operation. Known values are: "Succeeded", "Canceled", "Failed", "New", "Pending", "Provisioning", "PendingBilling", "ConfirmedBilling", "Creating", "Created", and "Expired". (Succeeded, Canceled, Failed, New, Pending, Provisioning, PendingBilling, ConfirmedBilling, Creating, Created, Expired) |
roleDefinitionId | string | The ID of the role definition. Required. |
scope | string | The scope at which the role was assigned. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
userAuthenticationType | string | 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. |
userEmailAddress | string | The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement. |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
billingAccountDisplayName | string | The name of the billing account. |
billingAccountId | string | The fully qualified ID that uniquely identifies a billing account. |
billingProfileDisplayName | string | The name of the billing profile. |
billingProfileId | string | The fully qualified ID that uniquely identifies a billing profile. |
billingRequestId | string | The ID of the billing request that was created for the role assignment. This is only applicable to cross tenant role assignments or role assignments created through the billing request. |
createdByPrincipalId | string | The object ID of the user who created the role assignment. |
createdByPrincipalPuid | string | The principal PUID of the user who created the role assignment. |
createdByPrincipalTenantId | string | The tenant Id of the user who created the role assignment. |
createdByUserEmailAddress | string | The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement. |
createdOn | string (date-time) | The date the role assignment was created. |
customerDisplayName | string | The name of the customer. |
customerId | string | The fully qualified ID that uniquely identifies a customer. |
invoiceSectionDisplayName | string | The name of the invoice section. |
invoiceSectionId | string | The fully qualified ID that uniquely identifies an invoice section. |
modifiedByPrincipalId | string | The principal PUID of the user who modified the role assignment. |
modifiedByPrincipalPuid | string | The principal PUID of the user who modified the role assignment. |
modifiedByPrincipalTenantId | string | The tenant Id of the user who modified the role assignment. |
modifiedByUserEmailAddress | string | The email address of the user who modified the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement. |
modifiedOn | string (date-time) | The date the role assignment was modified. |
principalDisplayName | string | The display name of the principal to whom the role was assigned. |
principalId | string | The object id of the user to whom the role was assigned. |
principalPuid | string | The principal PUID of the user to whom the role was assigned. |
principalTenantId | string | The principal tenant id of the user to whom the role was assigned. |
principalTenantName | string | The friendly name of the tenant of the user to whom the role was assigned. This will be 'Primary Tenant' for the primary tenant of the billing account. |
principalType | string | The type of a role Assignment. Known values are: "Unknown", "None", "User", "Group", "DirectoryRole", "ServicePrincipal", and "Everyone". (Unknown, None, User, Group, DirectoryRole, ServicePrincipal, Everyone) |
provisioningState | string | The provisioning state of the resource during a long-running operation. Known values are: "Succeeded", "Canceled", "Failed", "New", "Pending", "Provisioning", "PendingBilling", "ConfirmedBilling", "Creating", "Created", and "Expired". (Succeeded, Canceled, Failed, New, Pending, Provisioning, PendingBilling, ConfirmedBilling, Creating, Created, Expired) |
roleDefinitionId | string | The ID of the role definition. Required. |
scope | string | The scope at which the role was assigned. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
userAuthenticationType | string | 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. |
userEmailAddress | string | The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement. |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
billingAccountDisplayName | string | The name of the billing account. |
billingAccountId | string | The fully qualified ID that uniquely identifies a billing account. |
billingProfileDisplayName | string | The name of the billing profile. |
billingProfileId | string | The fully qualified ID that uniquely identifies a billing profile. |
billingRequestId | string | The ID of the billing request that was created for the role assignment. This is only applicable to cross tenant role assignments or role assignments created through the billing request. |
createdByPrincipalId | string | The object ID of the user who created the role assignment. |
createdByPrincipalPuid | string | The principal PUID of the user who created the role assignment. |
createdByPrincipalTenantId | string | The tenant Id of the user who created the role assignment. |
createdByUserEmailAddress | string | The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement. |
createdOn | string (date-time) | The date the role assignment was created. |
customerDisplayName | string | The name of the customer. |
customerId | string | The fully qualified ID that uniquely identifies a customer. |
invoiceSectionDisplayName | string | The name of the invoice section. |
invoiceSectionId | string | The fully qualified ID that uniquely identifies an invoice section. |
modifiedByPrincipalId | string | The principal PUID of the user who modified the role assignment. |
modifiedByPrincipalPuid | string | The principal PUID of the user who modified the role assignment. |
modifiedByPrincipalTenantId | string | The tenant Id of the user who modified the role assignment. |
modifiedByUserEmailAddress | string | The email address of the user who modified the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement. |
modifiedOn | string (date-time) | The date the role assignment was modified. |
principalDisplayName | string | The display name of the principal to whom the role was assigned. |
principalId | string | The object id of the user to whom the role was assigned. |
principalPuid | string | The principal PUID of the user to whom the role was assigned. |
principalTenantId | string | The principal tenant id of the user to whom the role was assigned. |
principalTenantName | string | The friendly name of the tenant of the user to whom the role was assigned. This will be 'Primary Tenant' for the primary tenant of the billing account. |
principalType | string | The type of a role Assignment. Known values are: "Unknown", "None", "User", "Group", "DirectoryRole", "ServicePrincipal", and "Everyone". (Unknown, None, User, Group, DirectoryRole, ServicePrincipal, Everyone) |
provisioningState | string | The provisioning state of the resource during a long-running operation. Known values are: "Succeeded", "Canceled", "Failed", "New", "Pending", "Provisioning", "PendingBilling", "ConfirmedBilling", "Creating", "Created", and "Expired". (Succeeded, Canceled, Failed, New, Pending, Provisioning, PendingBilling, ConfirmedBilling, Creating, Created, Expired) |
roleDefinitionId | string | The ID of the role definition. Required. |
scope | string | The scope at which the role was assigned. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
userAuthenticationType | string | 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. |
userEmailAddress | string | The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement. |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
billingAccountDisplayName | string | The name of the billing account. |
billingAccountId | string | The fully qualified ID that uniquely identifies a billing account. |
billingProfileDisplayName | string | The name of the billing profile. |
billingProfileId | string | The fully qualified ID that uniquely identifies a billing profile. |
billingRequestId | string | The ID of the billing request that was created for the role assignment. This is only applicable to cross tenant role assignments or role assignments created through the billing request. |
createdByPrincipalId | string | The object ID of the user who created the role assignment. |
createdByPrincipalPuid | string | The principal PUID of the user who created the role assignment. |
createdByPrincipalTenantId | string | The tenant Id of the user who created the role assignment. |
createdByUserEmailAddress | string | The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement. |
createdOn | string (date-time) | The date the role assignment was created. |
customerDisplayName | string | The name of the customer. |
customerId | string | The fully qualified ID that uniquely identifies a customer. |
invoiceSectionDisplayName | string | The name of the invoice section. |
invoiceSectionId | string | The fully qualified ID that uniquely identifies an invoice section. |
modifiedByPrincipalId | string | The principal PUID of the user who modified the role assignment. |
modifiedByPrincipalPuid | string | The principal PUID of the user who modified the role assignment. |
modifiedByPrincipalTenantId | string | The tenant Id of the user who modified the role assignment. |
modifiedByUserEmailAddress | string | The email address of the user who modified the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement. |
modifiedOn | string (date-time) | The date the role assignment was modified. |
principalDisplayName | string | The display name of the principal to whom the role was assigned. |
principalId | string | The object id of the user to whom the role was assigned. |
principalPuid | string | The principal PUID of the user to whom the role was assigned. |
principalTenantId | string | The principal tenant id of the user to whom the role was assigned. |
principalTenantName | string | The friendly name of the tenant of the user to whom the role was assigned. This will be 'Primary Tenant' for the primary tenant of the billing account. |
principalType | string | The type of a role Assignment. Known values are: "Unknown", "None", "User", "Group", "DirectoryRole", "ServicePrincipal", and "Everyone". (Unknown, None, User, Group, DirectoryRole, ServicePrincipal, Everyone) |
provisioningState | string | The provisioning state of the resource during a long-running operation. Known values are: "Succeeded", "Canceled", "Failed", "New", "Pending", "Provisioning", "PendingBilling", "ConfirmedBilling", "Creating", "Created", and "Expired". (Succeeded, Canceled, Failed, New, Pending, Provisioning, PendingBilling, ConfirmedBilling, Creating, Created, Expired) |
roleDefinitionId | string | The ID of the role definition. Required. |
scope | string | The scope at which the role was assigned. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
userAuthenticationType | string | 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. |
userEmailAddress | string | The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement. |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
billingAccountDisplayName | string | The name of the billing account. |
billingAccountId | string | The fully qualified ID that uniquely identifies a billing account. |
billingProfileDisplayName | string | The name of the billing profile. |
billingProfileId | string | The fully qualified ID that uniquely identifies a billing profile. |
billingRequestId | string | The ID of the billing request that was created for the role assignment. This is only applicable to cross tenant role assignments or role assignments created through the billing request. |
createdByPrincipalId | string | The object ID of the user who created the role assignment. |
createdByPrincipalPuid | string | The principal PUID of the user who created the role assignment. |
createdByPrincipalTenantId | string | The tenant Id of the user who created the role assignment. |
createdByUserEmailAddress | string | The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement. |
createdOn | string (date-time) | The date the role assignment was created. |
customerDisplayName | string | The name of the customer. |
customerId | string | The fully qualified ID that uniquely identifies a customer. |
invoiceSectionDisplayName | string | The name of the invoice section. |
invoiceSectionId | string | The fully qualified ID that uniquely identifies an invoice section. |
modifiedByPrincipalId | string | The principal PUID of the user who modified the role assignment. |
modifiedByPrincipalPuid | string | The principal PUID of the user who modified the role assignment. |
modifiedByPrincipalTenantId | string | The tenant Id of the user who modified the role assignment. |
modifiedByUserEmailAddress | string | The email address of the user who modified the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement. |
modifiedOn | string (date-time) | The date the role assignment was modified. |
principalDisplayName | string | The display name of the principal to whom the role was assigned. |
principalId | string | The object id of the user to whom the role was assigned. |
principalPuid | string | The principal PUID of the user to whom the role was assigned. |
principalTenantId | string | The principal tenant id of the user to whom the role was assigned. |
principalTenantName | string | The friendly name of the tenant of the user to whom the role was assigned. This will be 'Primary Tenant' for the primary tenant of the billing account. |
principalType | string | The type of a role Assignment. Known values are: "Unknown", "None", "User", "Group", "DirectoryRole", "ServicePrincipal", and "Everyone". (Unknown, None, User, Group, DirectoryRole, ServicePrincipal, Everyone) |
provisioningState | string | The provisioning state of the resource during a long-running operation. Known values are: "Succeeded", "Canceled", "Failed", "New", "Pending", "Provisioning", "PendingBilling", "ConfirmedBilling", "Creating", "Created", and "Expired". (Succeeded, Canceled, Failed, New, Pending, Provisioning, PendingBilling, ConfirmedBilling, Creating, Created, Expired) |
roleDefinitionId | string | The ID of the role definition. Required. |
scope | string | The scope at which the role was assigned. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
userAuthenticationType | string | 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. |
userEmailAddress | string | The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement. |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
billingAccountDisplayName | string | The name of the billing account. |
billingAccountId | string | The fully qualified ID that uniquely identifies a billing account. |
billingProfileDisplayName | string | The name of the billing profile. |
billingProfileId | string | The fully qualified ID that uniquely identifies a billing profile. |
billingRequestId | string | The ID of the billing request that was created for the role assignment. This is only applicable to cross tenant role assignments or role assignments created through the billing request. |
createdByPrincipalId | string | The object ID of the user who created the role assignment. |
createdByPrincipalPuid | string | The principal PUID of the user who created the role assignment. |
createdByPrincipalTenantId | string | The tenant Id of the user who created the role assignment. |
createdByUserEmailAddress | string | The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement. |
createdOn | string (date-time) | The date the role assignment was created. |
customerDisplayName | string | The name of the customer. |
customerId | string | The fully qualified ID that uniquely identifies a customer. |
invoiceSectionDisplayName | string | The name of the invoice section. |
invoiceSectionId | string | The fully qualified ID that uniquely identifies an invoice section. |
modifiedByPrincipalId | string | The principal PUID of the user who modified the role assignment. |
modifiedByPrincipalPuid | string | The principal PUID of the user who modified the role assignment. |
modifiedByPrincipalTenantId | string | The tenant Id of the user who modified the role assignment. |
modifiedByUserEmailAddress | string | The email address of the user who modified the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement. |
modifiedOn | string (date-time) | The date the role assignment was modified. |
principalDisplayName | string | The display name of the principal to whom the role was assigned. |
principalId | string | The object id of the user to whom the role was assigned. |
principalPuid | string | The principal PUID of the user to whom the role was assigned. |
principalTenantId | string | The principal tenant id of the user to whom the role was assigned. |
principalTenantName | string | The friendly name of the tenant of the user to whom the role was assigned. This will be 'Primary Tenant' for the primary tenant of the billing account. |
principalType | string | The type of a role Assignment. Known values are: "Unknown", "None", "User", "Group", "DirectoryRole", "ServicePrincipal", and "Everyone". (Unknown, None, User, Group, DirectoryRole, ServicePrincipal, Everyone) |
provisioningState | string | The provisioning state of the resource during a long-running operation. Known values are: "Succeeded", "Canceled", "Failed", "New", "Pending", "Provisioning", "PendingBilling", "ConfirmedBilling", "Creating", "Created", and "Expired". (Succeeded, Canceled, Failed, New, Pending, Provisioning, PendingBilling, ConfirmedBilling, Creating, Created, Expired) |
roleDefinitionId | string | The ID of the role definition. Required. |
scope | string | The scope at which the role was assigned. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
userAuthenticationType | string | 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. |
userEmailAddress | string | The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement. |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
billingAccountDisplayName | string | The name of the billing account. |
billingAccountId | string | The fully qualified ID that uniquely identifies a billing account. |
billingProfileDisplayName | string | The name of the billing profile. |
billingProfileId | string | The fully qualified ID that uniquely identifies a billing profile. |
billingRequestId | string | The ID of the billing request that was created for the role assignment. This is only applicable to cross tenant role assignments or role assignments created through the billing request. |
createdByPrincipalId | string | The object ID of the user who created the role assignment. |
createdByPrincipalPuid | string | The principal PUID of the user who created the role assignment. |
createdByPrincipalTenantId | string | The tenant Id of the user who created the role assignment. |
createdByUserEmailAddress | string | The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement. |
createdOn | string (date-time) | The date the role assignment was created. |
customerDisplayName | string | The name of the customer. |
customerId | string | The fully qualified ID that uniquely identifies a customer. |
invoiceSectionDisplayName | string | The name of the invoice section. |
invoiceSectionId | string | The fully qualified ID that uniquely identifies an invoice section. |
modifiedByPrincipalId | string | The principal PUID of the user who modified the role assignment. |
modifiedByPrincipalPuid | string | The principal PUID of the user who modified the role assignment. |
modifiedByPrincipalTenantId | string | The tenant Id of the user who modified the role assignment. |
modifiedByUserEmailAddress | string | The email address of the user who modified the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement. |
modifiedOn | string (date-time) | The date the role assignment was modified. |
principalDisplayName | string | The display name of the principal to whom the role was assigned. |
principalId | string | The object id of the user to whom the role was assigned. |
principalPuid | string | The principal PUID of the user to whom the role was assigned. |
principalTenantId | string | The principal tenant id of the user to whom the role was assigned. |
principalTenantName | string | The friendly name of the tenant of the user to whom the role was assigned. This will be 'Primary Tenant' for the primary tenant of the billing account. |
principalType | string | The type of a role Assignment. Known values are: "Unknown", "None", "User", "Group", "DirectoryRole", "ServicePrincipal", and "Everyone". (Unknown, None, User, Group, DirectoryRole, ServicePrincipal, Everyone) |
provisioningState | string | The provisioning state of the resource during a long-running operation. Known values are: "Succeeded", "Canceled", "Failed", "New", "Pending", "Provisioning", "PendingBilling", "ConfirmedBilling", "Creating", "Created", and "Expired". (Succeeded, Canceled, Failed, New, Pending, Provisioning, PendingBilling, ConfirmedBilling, Creating, Created, Expired) |
roleDefinitionId | string | The ID of the role definition. Required. |
scope | string | The scope at which the role was assigned. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
userAuthenticationType | string | 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. |
userEmailAddress | string | The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement. |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
billingAccountDisplayName | string | The name of the billing account. |
billingAccountId | string | The fully qualified ID that uniquely identifies a billing account. |
billingProfileDisplayName | string | The name of the billing profile. |
billingProfileId | string | The fully qualified ID that uniquely identifies a billing profile. |
billingRequestId | string | The ID of the billing request that was created for the role assignment. This is only applicable to cross tenant role assignments or role assignments created through the billing request. |
createdByPrincipalId | string | The object ID of the user who created the role assignment. |
createdByPrincipalPuid | string | The principal PUID of the user who created the role assignment. |
createdByPrincipalTenantId | string | The tenant Id of the user who created the role assignment. |
createdByUserEmailAddress | string | The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement. |
createdOn | string (date-time) | The date the role assignment was created. |
customerDisplayName | string | The name of the customer. |
customerId | string | The fully qualified ID that uniquely identifies a customer. |
invoiceSectionDisplayName | string | The name of the invoice section. |
invoiceSectionId | string | The fully qualified ID that uniquely identifies an invoice section. |
modifiedByPrincipalId | string | The principal PUID of the user who modified the role assignment. |
modifiedByPrincipalPuid | string | The principal PUID of the user who modified the role assignment. |
modifiedByPrincipalTenantId | string | The tenant Id of the user who modified the role assignment. |
modifiedByUserEmailAddress | string | The email address of the user who modified the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement. |
modifiedOn | string (date-time) | The date the role assignment was modified. |
principalDisplayName | string | The display name of the principal to whom the role was assigned. |
principalId | string | The object id of the user to whom the role was assigned. |
principalPuid | string | The principal PUID of the user to whom the role was assigned. |
principalTenantId | string | The principal tenant id of the user to whom the role was assigned. |
principalTenantName | string | The friendly name of the tenant of the user to whom the role was assigned. This will be 'Primary Tenant' for the primary tenant of the billing account. |
principalType | string | The type of a role Assignment. Known values are: "Unknown", "None", "User", "Group", "DirectoryRole", "ServicePrincipal", and "Everyone". (Unknown, None, User, Group, DirectoryRole, ServicePrincipal, Everyone) |
provisioningState | string | The provisioning state of the resource during a long-running operation. Known values are: "Succeeded", "Canceled", "Failed", "New", "Pending", "Provisioning", "PendingBilling", "ConfirmedBilling", "Creating", "Created", and "Expired". (Succeeded, Canceled, Failed, New, Pending, Provisioning, PendingBilling, ConfirmedBilling, Creating, Created, Expired) |
roleDefinitionId | string | The ID of the role definition. Required. |
scope | string | The scope at which the role was assigned. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
userAuthenticationType | string | 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. |
userEmailAddress | string | The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement. |
| Name | Datatype | Description |
|---|---|---|
id | string | Fully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}. |
name | string | The name of the resource. |
billingAccountDisplayName | string | The name of the billing account. |
billingAccountId | string | The fully qualified ID that uniquely identifies a billing account. |
billingProfileDisplayName | string | The name of the billing profile. |
billingProfileId | string | The fully qualified ID that uniquely identifies a billing profile. |
billingRequestId | string | The ID of the billing request that was created for the role assignment. This is only applicable to cross tenant role assignments or role assignments created through the billing request. |
createdByPrincipalId | string | The object ID of the user who created the role assignment. |
createdByPrincipalPuid | string | The principal PUID of the user who created the role assignment. |
createdByPrincipalTenantId | string | The tenant Id of the user who created the role assignment. |
createdByUserEmailAddress | string | The email address of the user who created the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement. |
createdOn | string (date-time) | The date the role assignment was created. |
customerDisplayName | string | The name of the customer. |
customerId | string | The fully qualified ID that uniquely identifies a customer. |
invoiceSectionDisplayName | string | The name of the invoice section. |
invoiceSectionId | string | The fully qualified ID that uniquely identifies an invoice section. |
modifiedByPrincipalId | string | The principal PUID of the user who modified the role assignment. |
modifiedByPrincipalPuid | string | The principal PUID of the user who modified the role assignment. |
modifiedByPrincipalTenantId | string | The tenant Id of the user who modified the role assignment. |
modifiedByUserEmailAddress | string | The email address of the user who modified the role assignment. This is supported only for billing accounts with agreement type Enterprise Agreement. |
modifiedOn | string (date-time) | The date the role assignment was modified. |
principalDisplayName | string | The display name of the principal to whom the role was assigned. |
principalId | string | The object id of the user to whom the role was assigned. |
principalPuid | string | The principal PUID of the user to whom the role was assigned. |
principalTenantId | string | The principal tenant id of the user to whom the role was assigned. |
principalTenantName | string | The friendly name of the tenant of the user to whom the role was assigned. This will be 'Primary Tenant' for the primary tenant of the billing account. |
principalType | string | The type of a role Assignment. Known values are: "Unknown", "None", "User", "Group", "DirectoryRole", "ServicePrincipal", and "Everyone". (Unknown, None, User, Group, DirectoryRole, ServicePrincipal, Everyone) |
provisioningState | string | The provisioning state of the resource during a long-running operation. Known values are: "Succeeded", "Canceled", "Failed", "New", "Pending", "Provisioning", "PendingBilling", "ConfirmedBilling", "Creating", "Created", and "Expired". (Succeeded, Canceled, Failed, New, Pending, Provisioning, PendingBilling, ConfirmedBilling, Creating, Created, Expired) |
roleDefinitionId | string | The ID of the role definition. Required. |
scope | string | The scope at which the role was assigned. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
tags | object | Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & \ ? /. |
type | string | The type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts". |
userAuthenticationType | string | 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. |
userEmailAddress | string | The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement. |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
get_by_customer | select | billing_account_name, billing_profile_name, customer_name, billing_role_assignment_name | Gets a role assignment for the caller on a customer. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement. | |
get_by_invoice_section | select | billing_account_name, billing_profile_name, invoice_section_name, billing_role_assignment_name | Gets a role assignment for the caller on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement. | |
list_by_customer | select | billing_account_name, billing_profile_name, customer_name | filter, top, skip | Lists the role assignments for the caller on customer. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement. |
list_by_invoice_section | select | billing_account_name, billing_profile_name, invoice_section_name | filter, top, skip | Lists the role assignments for the caller on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement. |
get_by_billing_profile | select | billing_account_name, billing_profile_name, billing_role_assignment_name | Gets a role assignment for the caller on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. | |
get_by_department | select | billing_account_name, department_name, billing_role_assignment_name | Gets a role assignment for the caller on a department. The operation is supported only for billing accounts with agreement type Enterprise Agreement. | |
get_by_enrollment_account | select | billing_account_name, enrollment_account_name, billing_role_assignment_name | Gets a role assignment for the caller on a enrollment Account. The operation is supported only for billing accounts with agreement type Enterprise Agreement. | |
list_by_billing_profile | select | billing_account_name, billing_profile_name | filter, top, skip | Lists the role assignments for the caller on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. |
list_by_department | select | billing_account_name, department_name | Lists the role assignments for the caller on a department. The operation is supported for billing accounts of type Enterprise Agreement. | |
list_by_enrollment_account | select | billing_account_name, enrollment_account_name | Lists the role assignments for the caller on a enrollment account. The operation is supported for billing accounts of type Enterprise Agreement. | |
get_by_billing_account | select | billing_account_name, billing_role_assignment_name | Gets a role assignment for the caller on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement. | |
list_by_billing_account | select | billing_account_name | filter, top, skip | Lists the role assignments for the caller on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement. |
create_by_customer | insert | billing_account_name, billing_profile_name, customer_name, roleDefinitionId | Adds a role assignment on a customer. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement. | |
create_by_invoice_section | insert | billing_account_name, billing_profile_name, invoice_section_name, roleDefinitionId | Adds a role assignment on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement. | |
create_or_update_by_department | insert | billing_account_name, department_name, billing_role_assignment_name | Create or update a billing role assignment. The operation is supported only for billing accounts with agreement type Enterprise Agreement. | |
create_or_update_by_enrollment_account | insert | billing_account_name, enrollment_account_name, billing_role_assignment_name | Create or update a billing role assignment. The operation is supported only for billing accounts with agreement type Enterprise Agreement. | |
create_by_billing_profile | insert | billing_account_name, billing_profile_name, roleDefinitionId | Adds a role assignment on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. | |
create_or_update_by_billing_account | insert | billing_account_name, billing_role_assignment_name | Create or update a billing role assignment. The operation is supported only for billing accounts with agreement type Enterprise Agreement. | |
create_by_billing_account | insert | billing_account_name, roleDefinitionId | Adds a role assignment on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. | |
create_or_update_by_department | replace | billing_account_name, department_name, billing_role_assignment_name | Create or update a billing role assignment. The operation is supported only for billing accounts with agreement type Enterprise Agreement. | |
create_or_update_by_enrollment_account | replace | billing_account_name, enrollment_account_name, billing_role_assignment_name | Create or update a billing role assignment. The operation is supported only for billing accounts with agreement type Enterprise Agreement. | |
create_or_update_by_billing_account | replace | billing_account_name, billing_role_assignment_name | Create or update a billing role assignment. The operation is supported only for billing accounts with agreement type Enterprise Agreement. | |
delete_by_customer | delete | billing_account_name, billing_profile_name, customer_name, billing_role_assignment_name | Deletes a role assignment on a customer. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement. | |
delete_by_invoice_section | delete | billing_account_name, billing_profile_name, invoice_section_name, billing_role_assignment_name | Deletes a role assignment on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement. | |
delete_by_billing_profile | delete | billing_account_name, billing_profile_name, billing_role_assignment_name | Deletes a role assignment on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. | |
delete_by_department | delete | billing_account_name, department_name, billing_role_assignment_name | Deletes a role assignment on a department. The operation is supported only for billing accounts with agreement type Enterprise Agreement. | |
delete_by_enrollment_account | delete | billing_account_name, enrollment_account_name, billing_role_assignment_name | Deletes a role assignment on a enrollment Account. The operation is supported only for billing accounts with agreement type Enterprise Agreement. | |
delete_by_billing_account | delete | billing_account_name, billing_role_assignment_name | Deletes a role assignment on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement. | |
resolve_by_billing_account | exec | billing_account_name | resolveScopeDisplayNames, filter | Lists the role assignments for the caller on a billing account while fetching user info for each role assignment. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement. |
resolve_by_billing_profile | exec | billing_account_name, billing_profile_name | resolveScopeDisplayNames, filter | Lists the role assignments for the caller on an billing profile while fetching user info for each role assignment. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement. |
resolve_by_customer | exec | billing_account_name, billing_profile_name, customer_name | resolveScopeDisplayNames, filter | Lists the role assignments for the caller on a customer while fetching user info for each role assignment. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement. |
resolve_by_invoice_section | exec | billing_account_name, billing_profile_name, invoice_section_name | resolveScopeDisplayNames, filter | Lists the role assignments for the caller on an invoice section while fetching user info for each role assignment. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement. |
Parameters
Parameters can be passed in the WHERE clause of a query. Check the Methods section to see which parameters are required or optional for each operation.
| Name | Datatype | Description |
|---|---|---|
billing_account_name | string | The ID that uniquely identifies a billing account. Required. |
billing_profile_name | string | The ID that uniquely identifies a billing profile. Required. |
billing_role_assignment_name | string | The ID that uniquely identifies a role assignment. Required. |
customer_name | string | The ID that uniquely identifies a customer. Required. |
department_name | string | The name of the department. Required. |
enrollment_account_name | string | The name of the enrollment account. Required. |
invoice_section_name | string | The ID that uniquely identifies an invoice section. Required. |
filter | string | The filter query option allows clients to filter a collection of resources that are addressed by a request URL. Default value is None. |
resolveScopeDisplayNames | boolean | Resolves the scope display name for each of the role assignments. Default value is False. |
skip | integer | The skip query option requests the number of items in the queried collection that are to be skipped and not included in the result. Default value is None. |
top | integer | The top query option requests the number of items in the queried collection to be included in the result. The maximum supported value for top is 50. Default value is None. |
SELECT examples
- get_by_customer
- get_by_invoice_section
- list_by_customer
- list_by_invoice_section
- get_by_billing_profile
- get_by_department
- get_by_enrollment_account
- list_by_billing_profile
- list_by_department
- list_by_enrollment_account
- get_by_billing_account
- list_by_billing_account
Gets a role assignment for the caller on a customer. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement.
SELECT
id,
name,
billingAccountDisplayName,
billingAccountId,
billingProfileDisplayName,
billingProfileId,
billingRequestId,
createdByPrincipalId,
createdByPrincipalPuid,
createdByPrincipalTenantId,
createdByUserEmailAddress,
createdOn,
customerDisplayName,
customerId,
invoiceSectionDisplayName,
invoiceSectionId,
modifiedByPrincipalId,
modifiedByPrincipalPuid,
modifiedByPrincipalTenantId,
modifiedByUserEmailAddress,
modifiedOn,
principalDisplayName,
principalId,
principalPuid,
principalTenantId,
principalTenantName,
principalType,
provisioningState,
roleDefinitionId,
scope,
systemData,
tags,
type,
userAuthenticationType,
userEmailAddress
FROM azure.billing.billing_role_assignments
WHERE billing_account_name = '{{ billing_account_name }}' -- required
AND billing_profile_name = '{{ billing_profile_name }}' -- required
AND customer_name = '{{ customer_name }}' -- required
AND billing_role_assignment_name = '{{ billing_role_assignment_name }}' -- required
;
Gets a role assignment for the caller on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
SELECT
id,
name,
billingAccountDisplayName,
billingAccountId,
billingProfileDisplayName,
billingProfileId,
billingRequestId,
createdByPrincipalId,
createdByPrincipalPuid,
createdByPrincipalTenantId,
createdByUserEmailAddress,
createdOn,
customerDisplayName,
customerId,
invoiceSectionDisplayName,
invoiceSectionId,
modifiedByPrincipalId,
modifiedByPrincipalPuid,
modifiedByPrincipalTenantId,
modifiedByUserEmailAddress,
modifiedOn,
principalDisplayName,
principalId,
principalPuid,
principalTenantId,
principalTenantName,
principalType,
provisioningState,
roleDefinitionId,
scope,
systemData,
tags,
type,
userAuthenticationType,
userEmailAddress
FROM azure.billing.billing_role_assignments
WHERE billing_account_name = '{{ billing_account_name }}' -- required
AND billing_profile_name = '{{ billing_profile_name }}' -- required
AND invoice_section_name = '{{ invoice_section_name }}' -- required
AND billing_role_assignment_name = '{{ billing_role_assignment_name }}' -- required
;
Lists the role assignments for the caller on customer. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement.
SELECT
id,
name,
billingAccountDisplayName,
billingAccountId,
billingProfileDisplayName,
billingProfileId,
billingRequestId,
createdByPrincipalId,
createdByPrincipalPuid,
createdByPrincipalTenantId,
createdByUserEmailAddress,
createdOn,
customerDisplayName,
customerId,
invoiceSectionDisplayName,
invoiceSectionId,
modifiedByPrincipalId,
modifiedByPrincipalPuid,
modifiedByPrincipalTenantId,
modifiedByUserEmailAddress,
modifiedOn,
principalDisplayName,
principalId,
principalPuid,
principalTenantId,
principalTenantName,
principalType,
provisioningState,
roleDefinitionId,
scope,
systemData,
tags,
type,
userAuthenticationType,
userEmailAddress
FROM azure.billing.billing_role_assignments
WHERE billing_account_name = '{{ billing_account_name }}' -- required
AND billing_profile_name = '{{ billing_profile_name }}' -- required
AND customer_name = '{{ customer_name }}' -- required
AND filter = '{{ filter }}'
AND top = '{{ top }}'
AND skip = '{{ skip }}'
;
Lists the role assignments for the caller on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
SELECT
id,
name,
billingAccountDisplayName,
billingAccountId,
billingProfileDisplayName,
billingProfileId,
billingRequestId,
createdByPrincipalId,
createdByPrincipalPuid,
createdByPrincipalTenantId,
createdByUserEmailAddress,
createdOn,
customerDisplayName,
customerId,
invoiceSectionDisplayName,
invoiceSectionId,
modifiedByPrincipalId,
modifiedByPrincipalPuid,
modifiedByPrincipalTenantId,
modifiedByUserEmailAddress,
modifiedOn,
principalDisplayName,
principalId,
principalPuid,
principalTenantId,
principalTenantName,
principalType,
provisioningState,
roleDefinitionId,
scope,
systemData,
tags,
type,
userAuthenticationType,
userEmailAddress
FROM azure.billing.billing_role_assignments
WHERE billing_account_name = '{{ billing_account_name }}' -- required
AND billing_profile_name = '{{ billing_profile_name }}' -- required
AND invoice_section_name = '{{ invoice_section_name }}' -- required
AND filter = '{{ filter }}'
AND top = '{{ top }}'
AND skip = '{{ skip }}'
;
Gets a role assignment for the caller on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
SELECT
id,
name,
billingAccountDisplayName,
billingAccountId,
billingProfileDisplayName,
billingProfileId,
billingRequestId,
createdByPrincipalId,
createdByPrincipalPuid,
createdByPrincipalTenantId,
createdByUserEmailAddress,
createdOn,
customerDisplayName,
customerId,
invoiceSectionDisplayName,
invoiceSectionId,
modifiedByPrincipalId,
modifiedByPrincipalPuid,
modifiedByPrincipalTenantId,
modifiedByUserEmailAddress,
modifiedOn,
principalDisplayName,
principalId,
principalPuid,
principalTenantId,
principalTenantName,
principalType,
provisioningState,
roleDefinitionId,
scope,
systemData,
tags,
type,
userAuthenticationType,
userEmailAddress
FROM azure.billing.billing_role_assignments
WHERE billing_account_name = '{{ billing_account_name }}' -- required
AND billing_profile_name = '{{ billing_profile_name }}' -- required
AND billing_role_assignment_name = '{{ billing_role_assignment_name }}' -- required
;
Gets a role assignment for the caller on a department. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
SELECT
id,
name,
billingAccountDisplayName,
billingAccountId,
billingProfileDisplayName,
billingProfileId,
billingRequestId,
createdByPrincipalId,
createdByPrincipalPuid,
createdByPrincipalTenantId,
createdByUserEmailAddress,
createdOn,
customerDisplayName,
customerId,
invoiceSectionDisplayName,
invoiceSectionId,
modifiedByPrincipalId,
modifiedByPrincipalPuid,
modifiedByPrincipalTenantId,
modifiedByUserEmailAddress,
modifiedOn,
principalDisplayName,
principalId,
principalPuid,
principalTenantId,
principalTenantName,
principalType,
provisioningState,
roleDefinitionId,
scope,
systemData,
tags,
type,
userAuthenticationType,
userEmailAddress
FROM azure.billing.billing_role_assignments
WHERE billing_account_name = '{{ billing_account_name }}' -- required
AND department_name = '{{ department_name }}' -- required
AND billing_role_assignment_name = '{{ billing_role_assignment_name }}' -- required
;
Gets a role assignment for the caller on a enrollment Account. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
SELECT
id,
name,
billingAccountDisplayName,
billingAccountId,
billingProfileDisplayName,
billingProfileId,
billingRequestId,
createdByPrincipalId,
createdByPrincipalPuid,
createdByPrincipalTenantId,
createdByUserEmailAddress,
createdOn,
customerDisplayName,
customerId,
invoiceSectionDisplayName,
invoiceSectionId,
modifiedByPrincipalId,
modifiedByPrincipalPuid,
modifiedByPrincipalTenantId,
modifiedByUserEmailAddress,
modifiedOn,
principalDisplayName,
principalId,
principalPuid,
principalTenantId,
principalTenantName,
principalType,
provisioningState,
roleDefinitionId,
scope,
systemData,
tags,
type,
userAuthenticationType,
userEmailAddress
FROM azure.billing.billing_role_assignments
WHERE billing_account_name = '{{ billing_account_name }}' -- required
AND enrollment_account_name = '{{ enrollment_account_name }}' -- required
AND billing_role_assignment_name = '{{ billing_role_assignment_name }}' -- required
;
Lists the role assignments for the caller on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
SELECT
id,
name,
billingAccountDisplayName,
billingAccountId,
billingProfileDisplayName,
billingProfileId,
billingRequestId,
createdByPrincipalId,
createdByPrincipalPuid,
createdByPrincipalTenantId,
createdByUserEmailAddress,
createdOn,
customerDisplayName,
customerId,
invoiceSectionDisplayName,
invoiceSectionId,
modifiedByPrincipalId,
modifiedByPrincipalPuid,
modifiedByPrincipalTenantId,
modifiedByUserEmailAddress,
modifiedOn,
principalDisplayName,
principalId,
principalPuid,
principalTenantId,
principalTenantName,
principalType,
provisioningState,
roleDefinitionId,
scope,
systemData,
tags,
type,
userAuthenticationType,
userEmailAddress
FROM azure.billing.billing_role_assignments
WHERE billing_account_name = '{{ billing_account_name }}' -- required
AND billing_profile_name = '{{ billing_profile_name }}' -- required
AND filter = '{{ filter }}'
AND top = '{{ top }}'
AND skip = '{{ skip }}'
;
Lists the role assignments for the caller on a department. The operation is supported for billing accounts of type Enterprise Agreement.
SELECT
id,
name,
billingAccountDisplayName,
billingAccountId,
billingProfileDisplayName,
billingProfileId,
billingRequestId,
createdByPrincipalId,
createdByPrincipalPuid,
createdByPrincipalTenantId,
createdByUserEmailAddress,
createdOn,
customerDisplayName,
customerId,
invoiceSectionDisplayName,
invoiceSectionId,
modifiedByPrincipalId,
modifiedByPrincipalPuid,
modifiedByPrincipalTenantId,
modifiedByUserEmailAddress,
modifiedOn,
principalDisplayName,
principalId,
principalPuid,
principalTenantId,
principalTenantName,
principalType,
provisioningState,
roleDefinitionId,
scope,
systemData,
tags,
type,
userAuthenticationType,
userEmailAddress
FROM azure.billing.billing_role_assignments
WHERE billing_account_name = '{{ billing_account_name }}' -- required
AND department_name = '{{ department_name }}' -- required
;
Lists the role assignments for the caller on a enrollment account. The operation is supported for billing accounts of type Enterprise Agreement.
SELECT
id,
name,
billingAccountDisplayName,
billingAccountId,
billingProfileDisplayName,
billingProfileId,
billingRequestId,
createdByPrincipalId,
createdByPrincipalPuid,
createdByPrincipalTenantId,
createdByUserEmailAddress,
createdOn,
customerDisplayName,
customerId,
invoiceSectionDisplayName,
invoiceSectionId,
modifiedByPrincipalId,
modifiedByPrincipalPuid,
modifiedByPrincipalTenantId,
modifiedByUserEmailAddress,
modifiedOn,
principalDisplayName,
principalId,
principalPuid,
principalTenantId,
principalTenantName,
principalType,
provisioningState,
roleDefinitionId,
scope,
systemData,
tags,
type,
userAuthenticationType,
userEmailAddress
FROM azure.billing.billing_role_assignments
WHERE billing_account_name = '{{ billing_account_name }}' -- required
AND enrollment_account_name = '{{ enrollment_account_name }}' -- required
;
Gets a role assignment for the caller on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
SELECT
id,
name,
billingAccountDisplayName,
billingAccountId,
billingProfileDisplayName,
billingProfileId,
billingRequestId,
createdByPrincipalId,
createdByPrincipalPuid,
createdByPrincipalTenantId,
createdByUserEmailAddress,
createdOn,
customerDisplayName,
customerId,
invoiceSectionDisplayName,
invoiceSectionId,
modifiedByPrincipalId,
modifiedByPrincipalPuid,
modifiedByPrincipalTenantId,
modifiedByUserEmailAddress,
modifiedOn,
principalDisplayName,
principalId,
principalPuid,
principalTenantId,
principalTenantName,
principalType,
provisioningState,
roleDefinitionId,
scope,
systemData,
tags,
type,
userAuthenticationType,
userEmailAddress
FROM azure.billing.billing_role_assignments
WHERE billing_account_name = '{{ billing_account_name }}' -- required
AND billing_role_assignment_name = '{{ billing_role_assignment_name }}' -- required
;
Lists the role assignments for the caller on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
SELECT
id,
name,
billingAccountDisplayName,
billingAccountId,
billingProfileDisplayName,
billingProfileId,
billingRequestId,
createdByPrincipalId,
createdByPrincipalPuid,
createdByPrincipalTenantId,
createdByUserEmailAddress,
createdOn,
customerDisplayName,
customerId,
invoiceSectionDisplayName,
invoiceSectionId,
modifiedByPrincipalId,
modifiedByPrincipalPuid,
modifiedByPrincipalTenantId,
modifiedByUserEmailAddress,
modifiedOn,
principalDisplayName,
principalId,
principalPuid,
principalTenantId,
principalTenantName,
principalType,
provisioningState,
roleDefinitionId,
scope,
systemData,
tags,
type,
userAuthenticationType,
userEmailAddress
FROM azure.billing.billing_role_assignments
WHERE billing_account_name = '{{ billing_account_name }}' -- required
AND filter = '{{ filter }}'
AND top = '{{ top }}'
AND skip = '{{ skip }}'
;
INSERT examples
- create_by_customer
- create_by_invoice_section
- create_or_update_by_department
- create_or_update_by_enrollment_account
- create_by_billing_profile
- create_or_update_by_billing_account
- create_by_billing_account
- Manifest
Adds a role assignment on a customer. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement.
INSERT INTO azure.billing.billing_role_assignments (
principalPuid,
principalId,
principalTenantId,
roleDefinitionId,
scope,
userAuthenticationType,
userEmailAddress,
billing_account_name,
billing_profile_name,
customer_name
)
SELECT
'{{ principalPuid }}',
'{{ principalId }}',
'{{ principalTenantId }}',
'{{ roleDefinitionId }}' /* required */,
'{{ scope }}',
'{{ userAuthenticationType }}',
'{{ userEmailAddress }}',
'{{ billing_account_name }}',
'{{ billing_profile_name }}',
'{{ customer_name }}'
RETURNING
id,
name,
properties,
systemData,
tags,
type
;
Adds a role assignment on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
INSERT INTO azure.billing.billing_role_assignments (
principalPuid,
principalId,
principalTenantId,
roleDefinitionId,
scope,
userAuthenticationType,
userEmailAddress,
billing_account_name,
billing_profile_name,
invoice_section_name
)
SELECT
'{{ principalPuid }}',
'{{ principalId }}',
'{{ principalTenantId }}',
'{{ roleDefinitionId }}' /* required */,
'{{ scope }}',
'{{ userAuthenticationType }}',
'{{ userEmailAddress }}',
'{{ billing_account_name }}',
'{{ billing_profile_name }}',
'{{ invoice_section_name }}'
RETURNING
id,
name,
properties,
systemData,
tags,
type
;
Create or update a billing role assignment. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
INSERT INTO azure.billing.billing_role_assignments (
properties,
tags,
billing_account_name,
department_name,
billing_role_assignment_name
)
SELECT
'{{ properties }}',
'{{ tags }}',
'{{ billing_account_name }}',
'{{ department_name }}',
'{{ billing_role_assignment_name }}'
RETURNING
id,
name,
properties,
systemData,
tags,
type
;
Create or update a billing role assignment. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
INSERT INTO azure.billing.billing_role_assignments (
properties,
tags,
billing_account_name,
enrollment_account_name,
billing_role_assignment_name
)
SELECT
'{{ properties }}',
'{{ tags }}',
'{{ billing_account_name }}',
'{{ enrollment_account_name }}',
'{{ billing_role_assignment_name }}'
RETURNING
id,
name,
properties,
systemData,
tags,
type
;
Adds a role assignment on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
INSERT INTO azure.billing.billing_role_assignments (
principalPuid,
principalId,
principalTenantId,
roleDefinitionId,
scope,
userAuthenticationType,
userEmailAddress,
billing_account_name,
billing_profile_name
)
SELECT
'{{ principalPuid }}',
'{{ principalId }}',
'{{ principalTenantId }}',
'{{ roleDefinitionId }}' /* required */,
'{{ scope }}',
'{{ userAuthenticationType }}',
'{{ userEmailAddress }}',
'{{ billing_account_name }}',
'{{ billing_profile_name }}'
RETURNING
id,
name,
properties,
systemData,
tags,
type
;
Create or update a billing role assignment. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
INSERT INTO azure.billing.billing_role_assignments (
properties,
tags,
billing_account_name,
billing_role_assignment_name
)
SELECT
'{{ properties }}',
'{{ tags }}',
'{{ billing_account_name }}',
'{{ billing_role_assignment_name }}'
RETURNING
id,
name,
properties,
systemData,
tags,
type
;
Adds a role assignment on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
INSERT INTO azure.billing.billing_role_assignments (
principalPuid,
principalId,
principalTenantId,
roleDefinitionId,
scope,
userAuthenticationType,
userEmailAddress,
billing_account_name
)
SELECT
'{{ principalPuid }}',
'{{ principalId }}',
'{{ principalTenantId }}',
'{{ roleDefinitionId }}' /* required */,
'{{ scope }}',
'{{ userAuthenticationType }}',
'{{ userEmailAddress }}',
'{{ billing_account_name }}'
RETURNING
id,
name,
properties,
systemData,
tags,
type
;
# Description fields are for documentation purposes
- name: billing_role_assignments
props:
- name: billing_account_name
value: "{{ billing_account_name }}"
description: Required parameter for the billing_role_assignments resource.
- name: billing_profile_name
value: "{{ billing_profile_name }}"
description: Required parameter for the billing_role_assignments resource.
- name: customer_name
value: "{{ customer_name }}"
description: Required parameter for the billing_role_assignments resource.
- name: invoice_section_name
value: "{{ invoice_section_name }}"
description: Required parameter for the billing_role_assignments resource.
- name: department_name
value: "{{ department_name }}"
description: Required parameter for the billing_role_assignments resource.
- name: billing_role_assignment_name
value: "{{ billing_role_assignment_name }}"
description: Required parameter for the billing_role_assignments resource.
- name: enrollment_account_name
value: "{{ enrollment_account_name }}"
description: Required parameter for the billing_role_assignments resource.
- name: principalPuid
value: "{{ principalPuid }}"
description: |
The principal PUID of the user to whom the role was assigned.
- name: principalId
value: "{{ principalId }}"
description: |
The object id of the user to whom the role was assigned.
- name: principalTenantId
value: "{{ principalTenantId }}"
description: |
The principal tenant id of the user to whom the role was assigned.
- name: roleDefinitionId
value: "{{ roleDefinitionId }}"
description: |
The ID of the role definition. Required.
- name: scope
value: "{{ scope }}"
description: |
The scope at which the role was assigned.
- name: userAuthenticationType
value: "{{ userAuthenticationType }}"
description: |
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.
- name: userEmailAddress
value: "{{ userEmailAddress }}"
description: |
The email address of the user to whom the role was assigned. This is supported only for billing accounts with agreement type Enterprise Agreement.
- name: properties
description: |
The properties of the billing role assignment.
value:
provisioningState: "{{ provisioningState }}"
createdOn: "{{ createdOn }}"
createdByPrincipalTenantId: "{{ createdByPrincipalTenantId }}"
createdByPrincipalId: "{{ createdByPrincipalId }}"
createdByPrincipalPuid: "{{ createdByPrincipalPuid }}"
createdByUserEmailAddress: "{{ createdByUserEmailAddress }}"
modifiedOn: "{{ modifiedOn }}"
modifiedByPrincipalPuid: "{{ modifiedByPrincipalPuid }}"
modifiedByUserEmailAddress: "{{ modifiedByUserEmailAddress }}"
modifiedByPrincipalId: "{{ modifiedByPrincipalId }}"
modifiedByPrincipalTenantId: "{{ modifiedByPrincipalTenantId }}"
principalPuid: "{{ principalPuid }}"
principalId: "{{ principalId }}"
principalTenantId: "{{ principalTenantId }}"
roleDefinitionId: "{{ roleDefinitionId }}"
scope: "{{ scope }}"
userAuthenticationType: "{{ userAuthenticationType }}"
userEmailAddress: "{{ userEmailAddress }}"
principalTenantName: "{{ principalTenantName }}"
principalDisplayName: "{{ principalDisplayName }}"
principalType: "{{ principalType }}"
billingRequestId: "{{ billingRequestId }}"
billingAccountId: "{{ billingAccountId }}"
billingAccountDisplayName: "{{ billingAccountDisplayName }}"
billingProfileId: "{{ billingProfileId }}"
billingProfileDisplayName: "{{ billingProfileDisplayName }}"
invoiceSectionId: "{{ invoiceSectionId }}"
invoiceSectionDisplayName: "{{ invoiceSectionDisplayName }}"
customerId: "{{ customerId }}"
customerDisplayName: "{{ customerDisplayName }}"
- name: tags
value: "{{ tags }}"
description: |
Dictionary of metadata associated with the resource. It may not be populated for all resource types. Maximum key/value length supported of 256 characters. Keys/value should not empty value nor null. Keys can not contain < > % & ? /.
REPLACE examples
- create_or_update_by_department
- create_or_update_by_enrollment_account
- create_or_update_by_billing_account
Create or update a billing role assignment. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
REPLACE azure.billing.billing_role_assignments
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
billing_account_name = '{{ billing_account_name }}' --required
AND department_name = '{{ department_name }}' --required
AND billing_role_assignment_name = '{{ billing_role_assignment_name }}' --required
RETURNING
id,
name,
properties,
systemData,
tags,
type;
Create or update a billing role assignment. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
REPLACE azure.billing.billing_role_assignments
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
billing_account_name = '{{ billing_account_name }}' --required
AND enrollment_account_name = '{{ enrollment_account_name }}' --required
AND billing_role_assignment_name = '{{ billing_role_assignment_name }}' --required
RETURNING
id,
name,
properties,
systemData,
tags,
type;
Create or update a billing role assignment. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
REPLACE azure.billing.billing_role_assignments
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
billing_account_name = '{{ billing_account_name }}' --required
AND billing_role_assignment_name = '{{ billing_role_assignment_name }}' --required
RETURNING
id,
name,
properties,
systemData,
tags,
type;
DELETE examples
- delete_by_customer
- delete_by_invoice_section
- delete_by_billing_profile
- delete_by_department
- delete_by_enrollment_account
- delete_by_billing_account
Deletes a role assignment on a customer. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement.
DELETE FROM azure.billing.billing_role_assignments
WHERE billing_account_name = '{{ billing_account_name }}' --required
AND billing_profile_name = '{{ billing_profile_name }}' --required
AND customer_name = '{{ customer_name }}' --required
AND billing_role_assignment_name = '{{ billing_role_assignment_name }}' --required
;
Deletes a role assignment on an invoice section. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
DELETE FROM azure.billing.billing_role_assignments
WHERE billing_account_name = '{{ billing_account_name }}' --required
AND billing_profile_name = '{{ billing_profile_name }}' --required
AND invoice_section_name = '{{ invoice_section_name }}' --required
AND billing_role_assignment_name = '{{ billing_role_assignment_name }}' --required
;
Deletes a role assignment on a billing profile. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
DELETE FROM azure.billing.billing_role_assignments
WHERE billing_account_name = '{{ billing_account_name }}' --required
AND billing_profile_name = '{{ billing_profile_name }}' --required
AND billing_role_assignment_name = '{{ billing_role_assignment_name }}' --required
;
Deletes a role assignment on a department. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
DELETE FROM azure.billing.billing_role_assignments
WHERE billing_account_name = '{{ billing_account_name }}' --required
AND department_name = '{{ department_name }}' --required
AND billing_role_assignment_name = '{{ billing_role_assignment_name }}' --required
;
Deletes a role assignment on a enrollment Account. The operation is supported only for billing accounts with agreement type Enterprise Agreement.
DELETE FROM azure.billing.billing_role_assignments
WHERE billing_account_name = '{{ billing_account_name }}' --required
AND enrollment_account_name = '{{ enrollment_account_name }}' --required
AND billing_role_assignment_name = '{{ billing_role_assignment_name }}' --required
;
Deletes a role assignment on a billing account. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
DELETE FROM azure.billing.billing_role_assignments
WHERE billing_account_name = '{{ billing_account_name }}' --required
AND billing_role_assignment_name = '{{ billing_role_assignment_name }}' --required
;
Lifecycle Methods
- resolve_by_billing_account
- resolve_by_billing_profile
- resolve_by_customer
- resolve_by_invoice_section
Lists the role assignments for the caller on a billing account while fetching user info for each role assignment. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement, Microsoft Customer Agreement or Enterprise Agreement.
EXEC azure.billing.billing_role_assignments.resolve_by_billing_account
@billing_account_name='{{ billing_account_name }}' --required,
@resolveScopeDisplayNames={{ resolveScopeDisplayNames }},
@filter='{{ filter }}'
;
Lists the role assignments for the caller on an billing profile while fetching user info for each role assignment. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement or Microsoft Customer Agreement.
EXEC azure.billing.billing_role_assignments.resolve_by_billing_profile
@billing_account_name='{{ billing_account_name }}' --required,
@billing_profile_name='{{ billing_profile_name }}' --required,
@resolveScopeDisplayNames={{ resolveScopeDisplayNames }},
@filter='{{ filter }}'
;
Lists the role assignments for the caller on a customer while fetching user info for each role assignment. The operation is supported for billing accounts with agreement type Microsoft Partner Agreement.
EXEC azure.billing.billing_role_assignments.resolve_by_customer
@billing_account_name='{{ billing_account_name }}' --required,
@billing_profile_name='{{ billing_profile_name }}' --required,
@customer_name='{{ customer_name }}' --required,
@resolveScopeDisplayNames={{ resolveScopeDisplayNames }},
@filter='{{ filter }}'
;
Lists the role assignments for the caller on an invoice section while fetching user info for each role assignment. The operation is supported for billing accounts with agreement type Microsoft Customer Agreement.
EXEC azure.billing.billing_role_assignments.resolve_by_invoice_section
@billing_account_name='{{ billing_account_name }}' --required,
@billing_profile_name='{{ billing_profile_name }}' --required,
@invoice_section_name='{{ invoice_section_name }}' --required,
@resolveScopeDisplayNames={{ resolveScopeDisplayNames }},
@filter='{{ filter }}'
;