billing_requests
Creates, updates, deletes, gets or lists a billing_requests resource.
Overview
| Name | billing_requests |
| Type | Resource |
| Id | azure.billing.billing_requests |
Fields
The following fields are returned by SELECT queries:
- list_by_customer
- list_by_invoice_section
- list_by_billing_profile
- get
- list_by_billing_account
- list_by_user
| 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. |
additionalInformation | object | Additional information for the billing request. |
billingAccountDisplayName | string | The name of the billing account. |
billingAccountId | string | The fully qualified ID that uniquely identifies a billing account. |
billingAccountName | string | The ID that uniquely identifies a billing account. |
billingAccountPrimaryBillingTenantId | string | The primary tenant ID of the billing account for which the billing request was submitted. |
billingProfileDisplayName | string | The name of the billing profile. |
billingProfileId | string | The fully qualified ID that uniquely identifies a billing profile. |
billingProfileName | string | The ID that uniquely identifies a billing profile. |
billingScope | string | The billing scope for which the request will be applied. This is a read only property derived by the service. |
createdBy | object | The principal of the entity who created the request. |
creationDate | string (date-time) | The date and time when the request was created. |
customerDisplayName | string | The name of the customer. |
customerId | string | The fully qualified ID that uniquely identifies a customer. |
customerName | string | The ID that uniquely identifies a customer. |
decisionReason | string | The reason to approve or decline the request. |
expirationDate | string (date-time) | The date and time when the request expires. |
invoiceSectionDisplayName | string | The name of the invoice section. |
invoiceSectionId | string | The fully qualified ID that uniquely identifies an invoice section. |
invoiceSectionName | string | The ID that uniquely identifies an invoice section. |
justification | string | Justification for submitting request. |
lastUpdatedBy | object | The principal of the entity who last updated the request. |
lastUpdatedDate | string (date-time) | Date and time of last update. |
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) |
recipients | array | The recipients of the billing request. |
requestScope | string | The billing scope for which the request was submitted (ex. '/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}'). |
reviewalDate | string (date-time) | The date and time when the request was reviewed. |
reviewedBy | object | The principal of the request reviewer. Will only be set if request is approved. |
status | string | Status of billing request. Known values are: "Other", "Pending", "Approved", "Declined", "Cancelled", "Completed", and "Expired". (Other, Pending, Approved, Declined, Cancelled, Completed, Expired) |
subscriptionDisplayName | string | The name of the billing subscription. |
subscriptionId | string | The fully qualified ID that uniquely identifies a billing subscription. |
subscriptionName | string | The ID that uniquely identifies a billing subscription. |
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". |
| 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. |
additionalInformation | object | Additional information for the billing request. |
billingAccountDisplayName | string | The name of the billing account. |
billingAccountId | string | The fully qualified ID that uniquely identifies a billing account. |
billingAccountName | string | The ID that uniquely identifies a billing account. |
billingAccountPrimaryBillingTenantId | string | The primary tenant ID of the billing account for which the billing request was submitted. |
billingProfileDisplayName | string | The name of the billing profile. |
billingProfileId | string | The fully qualified ID that uniquely identifies a billing profile. |
billingProfileName | string | The ID that uniquely identifies a billing profile. |
billingScope | string | The billing scope for which the request will be applied. This is a read only property derived by the service. |
createdBy | object | The principal of the entity who created the request. |
creationDate | string (date-time) | The date and time when the request was created. |
customerDisplayName | string | The name of the customer. |
customerId | string | The fully qualified ID that uniquely identifies a customer. |
customerName | string | The ID that uniquely identifies a customer. |
decisionReason | string | The reason to approve or decline the request. |
expirationDate | string (date-time) | The date and time when the request expires. |
invoiceSectionDisplayName | string | The name of the invoice section. |
invoiceSectionId | string | The fully qualified ID that uniquely identifies an invoice section. |
invoiceSectionName | string | The ID that uniquely identifies an invoice section. |
justification | string | Justification for submitting request. |
lastUpdatedBy | object | The principal of the entity who last updated the request. |
lastUpdatedDate | string (date-time) | Date and time of last update. |
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) |
recipients | array | The recipients of the billing request. |
requestScope | string | The billing scope for which the request was submitted (ex. '/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}'). |
reviewalDate | string (date-time) | The date and time when the request was reviewed. |
reviewedBy | object | The principal of the request reviewer. Will only be set if request is approved. |
status | string | Status of billing request. Known values are: "Other", "Pending", "Approved", "Declined", "Cancelled", "Completed", and "Expired". (Other, Pending, Approved, Declined, Cancelled, Completed, Expired) |
subscriptionDisplayName | string | The name of the billing subscription. |
subscriptionId | string | The fully qualified ID that uniquely identifies a billing subscription. |
subscriptionName | string | The ID that uniquely identifies a billing subscription. |
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". |
| 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. |
additionalInformation | object | Additional information for the billing request. |
billingAccountDisplayName | string | The name of the billing account. |
billingAccountId | string | The fully qualified ID that uniquely identifies a billing account. |
billingAccountName | string | The ID that uniquely identifies a billing account. |
billingAccountPrimaryBillingTenantId | string | The primary tenant ID of the billing account for which the billing request was submitted. |
billingProfileDisplayName | string | The name of the billing profile. |
billingProfileId | string | The fully qualified ID that uniquely identifies a billing profile. |
billingProfileName | string | The ID that uniquely identifies a billing profile. |
billingScope | string | The billing scope for which the request will be applied. This is a read only property derived by the service. |
createdBy | object | The principal of the entity who created the request. |
creationDate | string (date-time) | The date and time when the request was created. |
customerDisplayName | string | The name of the customer. |
customerId | string | The fully qualified ID that uniquely identifies a customer. |
customerName | string | The ID that uniquely identifies a customer. |
decisionReason | string | The reason to approve or decline the request. |
expirationDate | string (date-time) | The date and time when the request expires. |
invoiceSectionDisplayName | string | The name of the invoice section. |
invoiceSectionId | string | The fully qualified ID that uniquely identifies an invoice section. |
invoiceSectionName | string | The ID that uniquely identifies an invoice section. |
justification | string | Justification for submitting request. |
lastUpdatedBy | object | The principal of the entity who last updated the request. |
lastUpdatedDate | string (date-time) | Date and time of last update. |
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) |
recipients | array | The recipients of the billing request. |
requestScope | string | The billing scope for which the request was submitted (ex. '/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}'). |
reviewalDate | string (date-time) | The date and time when the request was reviewed. |
reviewedBy | object | The principal of the request reviewer. Will only be set if request is approved. |
status | string | Status of billing request. Known values are: "Other", "Pending", "Approved", "Declined", "Cancelled", "Completed", and "Expired". (Other, Pending, Approved, Declined, Cancelled, Completed, Expired) |
subscriptionDisplayName | string | The name of the billing subscription. |
subscriptionId | string | The fully qualified ID that uniquely identifies a billing subscription. |
subscriptionName | string | The ID that uniquely identifies a billing subscription. |
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". |
| 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. |
additionalInformation | object | Additional information for the billing request. |
billingAccountDisplayName | string | The name of the billing account. |
billingAccountId | string | The fully qualified ID that uniquely identifies a billing account. |
billingAccountName | string | The ID that uniquely identifies a billing account. |
billingAccountPrimaryBillingTenantId | string | The primary tenant ID of the billing account for which the billing request was submitted. |
billingProfileDisplayName | string | The name of the billing profile. |
billingProfileId | string | The fully qualified ID that uniquely identifies a billing profile. |
billingProfileName | string | The ID that uniquely identifies a billing profile. |
billingScope | string | The billing scope for which the request will be applied. This is a read only property derived by the service. |
createdBy | object | The principal of the entity who created the request. |
creationDate | string (date-time) | The date and time when the request was created. |
customerDisplayName | string | The name of the customer. |
customerId | string | The fully qualified ID that uniquely identifies a customer. |
customerName | string | The ID that uniquely identifies a customer. |
decisionReason | string | The reason to approve or decline the request. |
expirationDate | string (date-time) | The date and time when the request expires. |
invoiceSectionDisplayName | string | The name of the invoice section. |
invoiceSectionId | string | The fully qualified ID that uniquely identifies an invoice section. |
invoiceSectionName | string | The ID that uniquely identifies an invoice section. |
justification | string | Justification for submitting request. |
lastUpdatedBy | object | The principal of the entity who last updated the request. |
lastUpdatedDate | string (date-time) | Date and time of last update. |
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) |
recipients | array | The recipients of the billing request. |
requestScope | string | The billing scope for which the request was submitted (ex. '/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}'). |
reviewalDate | string (date-time) | The date and time when the request was reviewed. |
reviewedBy | object | The principal of the request reviewer. Will only be set if request is approved. |
status | string | Status of billing request. Known values are: "Other", "Pending", "Approved", "Declined", "Cancelled", "Completed", and "Expired". (Other, Pending, Approved, Declined, Cancelled, Completed, Expired) |
subscriptionDisplayName | string | The name of the billing subscription. |
subscriptionId | string | The fully qualified ID that uniquely identifies a billing subscription. |
subscriptionName | string | The ID that uniquely identifies a billing subscription. |
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". |
| 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. |
additionalInformation | object | Additional information for the billing request. |
billingAccountDisplayName | string | The name of the billing account. |
billingAccountId | string | The fully qualified ID that uniquely identifies a billing account. |
billingAccountName | string | The ID that uniquely identifies a billing account. |
billingAccountPrimaryBillingTenantId | string | The primary tenant ID of the billing account for which the billing request was submitted. |
billingProfileDisplayName | string | The name of the billing profile. |
billingProfileId | string | The fully qualified ID that uniquely identifies a billing profile. |
billingProfileName | string | The ID that uniquely identifies a billing profile. |
billingScope | string | The billing scope for which the request will be applied. This is a read only property derived by the service. |
createdBy | object | The principal of the entity who created the request. |
creationDate | string (date-time) | The date and time when the request was created. |
customerDisplayName | string | The name of the customer. |
customerId | string | The fully qualified ID that uniquely identifies a customer. |
customerName | string | The ID that uniquely identifies a customer. |
decisionReason | string | The reason to approve or decline the request. |
expirationDate | string (date-time) | The date and time when the request expires. |
invoiceSectionDisplayName | string | The name of the invoice section. |
invoiceSectionId | string | The fully qualified ID that uniquely identifies an invoice section. |
invoiceSectionName | string | The ID that uniquely identifies an invoice section. |
justification | string | Justification for submitting request. |
lastUpdatedBy | object | The principal of the entity who last updated the request. |
lastUpdatedDate | string (date-time) | Date and time of last update. |
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) |
recipients | array | The recipients of the billing request. |
requestScope | string | The billing scope for which the request was submitted (ex. '/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}'). |
reviewalDate | string (date-time) | The date and time when the request was reviewed. |
reviewedBy | object | The principal of the request reviewer. Will only be set if request is approved. |
status | string | Status of billing request. Known values are: "Other", "Pending", "Approved", "Declined", "Cancelled", "Completed", and "Expired". (Other, Pending, Approved, Declined, Cancelled, Completed, Expired) |
subscriptionDisplayName | string | The name of the billing subscription. |
subscriptionId | string | The fully qualified ID that uniquely identifies a billing subscription. |
subscriptionName | string | The ID that uniquely identifies a billing subscription. |
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". |
| 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. |
additionalInformation | object | Additional information for the billing request. |
billingAccountDisplayName | string | The name of the billing account. |
billingAccountId | string | The fully qualified ID that uniquely identifies a billing account. |
billingAccountName | string | The ID that uniquely identifies a billing account. |
billingAccountPrimaryBillingTenantId | string | The primary tenant ID of the billing account for which the billing request was submitted. |
billingProfileDisplayName | string | The name of the billing profile. |
billingProfileId | string | The fully qualified ID that uniquely identifies a billing profile. |
billingProfileName | string | The ID that uniquely identifies a billing profile. |
billingScope | string | The billing scope for which the request will be applied. This is a read only property derived by the service. |
createdBy | object | The principal of the entity who created the request. |
creationDate | string (date-time) | The date and time when the request was created. |
customerDisplayName | string | The name of the customer. |
customerId | string | The fully qualified ID that uniquely identifies a customer. |
customerName | string | The ID that uniquely identifies a customer. |
decisionReason | string | The reason to approve or decline the request. |
expirationDate | string (date-time) | The date and time when the request expires. |
invoiceSectionDisplayName | string | The name of the invoice section. |
invoiceSectionId | string | The fully qualified ID that uniquely identifies an invoice section. |
invoiceSectionName | string | The ID that uniquely identifies an invoice section. |
justification | string | Justification for submitting request. |
lastUpdatedBy | object | The principal of the entity who last updated the request. |
lastUpdatedDate | string (date-time) | Date and time of last update. |
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) |
recipients | array | The recipients of the billing request. |
requestScope | string | The billing scope for which the request was submitted (ex. '/providers/Microsoft.Billing/billingAccounts/{billingAccountName}/billingProfiles/{billingProfileName}'). |
reviewalDate | string (date-time) | The date and time when the request was reviewed. |
reviewedBy | object | The principal of the request reviewer. Will only be set if request is approved. |
status | string | Status of billing request. Known values are: "Other", "Pending", "Approved", "Declined", "Cancelled", "Completed", and "Expired". (Other, Pending, Approved, Declined, Cancelled, Completed, Expired) |
subscriptionDisplayName | string | The name of the billing subscription. |
subscriptionId | string | The fully qualified ID that uniquely identifies a billing subscription. |
subscriptionName | string | The ID that uniquely identifies a billing subscription. |
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". |
Methods
The following methods are available for this resource:
| Name | Accessible by | Required Params | Optional Params | Description |
|---|---|---|---|---|
list_by_customer | select | billing_account_name, billing_profile_name, customer_name | filter, orderBy, top, skip, count, search | The list of billing requests submitted for the customer. |
list_by_invoice_section | select | billing_account_name, billing_profile_name, invoice_section_name | filter, orderBy, top, skip, count, search | The list of billing requests submitted for the invoice section. |
list_by_billing_profile | select | billing_account_name, billing_profile_name | filter, orderBy, top, skip, count, search | The list of billing requests submitted for the billing profile. |
get | select | billing_request_name | Gets a billing request by its ID. | |
list_by_billing_account | select | billing_account_name | filter, orderBy, top, skip, count, search | The list of billing requests submitted for the billing account. |
list_by_user | select | filter, orderBy, top, skip, count, search | The list of billing requests submitted by a user. | |
create_or_update | insert | billing_request_name | Create or update a billing request. | |
create_or_update | replace | billing_request_name | Create or update a billing request. |
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_request_name | string | The ID that uniquely identifies a billing request. Required. |
customer_name | string | The ID that uniquely identifies a customer. Required. |
invoice_section_name | string | The ID that uniquely identifies an invoice section. Required. |
count | boolean | The count query option allows clients to request a count of the matching resources included with the resources in the response. Default value is None. |
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. |
orderBy | string | The orderby query option allows clients to request resources in a particular order. Default value is None. |
search | string | The search query option allows clients to request items within a collection matching a free-text search expression. search is only supported for string fields. Default value is None. |
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
- list_by_customer
- list_by_invoice_section
- list_by_billing_profile
- get
- list_by_billing_account
- list_by_user
The list of billing requests submitted for the customer.
SELECT
id,
name,
additionalInformation,
billingAccountDisplayName,
billingAccountId,
billingAccountName,
billingAccountPrimaryBillingTenantId,
billingProfileDisplayName,
billingProfileId,
billingProfileName,
billingScope,
createdBy,
creationDate,
customerDisplayName,
customerId,
customerName,
decisionReason,
expirationDate,
invoiceSectionDisplayName,
invoiceSectionId,
invoiceSectionName,
justification,
lastUpdatedBy,
lastUpdatedDate,
provisioningState,
recipients,
requestScope,
reviewalDate,
reviewedBy,
status,
subscriptionDisplayName,
subscriptionId,
subscriptionName,
systemData,
tags,
type
FROM azure.billing.billing_requests
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 orderBy = '{{ orderBy }}'
AND top = '{{ top }}'
AND skip = '{{ skip }}'
AND count = '{{ count }}'
AND search = '{{ search }}'
;
The list of billing requests submitted for the invoice section.
SELECT
id,
name,
additionalInformation,
billingAccountDisplayName,
billingAccountId,
billingAccountName,
billingAccountPrimaryBillingTenantId,
billingProfileDisplayName,
billingProfileId,
billingProfileName,
billingScope,
createdBy,
creationDate,
customerDisplayName,
customerId,
customerName,
decisionReason,
expirationDate,
invoiceSectionDisplayName,
invoiceSectionId,
invoiceSectionName,
justification,
lastUpdatedBy,
lastUpdatedDate,
provisioningState,
recipients,
requestScope,
reviewalDate,
reviewedBy,
status,
subscriptionDisplayName,
subscriptionId,
subscriptionName,
systemData,
tags,
type
FROM azure.billing.billing_requests
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 orderBy = '{{ orderBy }}'
AND top = '{{ top }}'
AND skip = '{{ skip }}'
AND count = '{{ count }}'
AND search = '{{ search }}'
;
The list of billing requests submitted for the billing profile.
SELECT
id,
name,
additionalInformation,
billingAccountDisplayName,
billingAccountId,
billingAccountName,
billingAccountPrimaryBillingTenantId,
billingProfileDisplayName,
billingProfileId,
billingProfileName,
billingScope,
createdBy,
creationDate,
customerDisplayName,
customerId,
customerName,
decisionReason,
expirationDate,
invoiceSectionDisplayName,
invoiceSectionId,
invoiceSectionName,
justification,
lastUpdatedBy,
lastUpdatedDate,
provisioningState,
recipients,
requestScope,
reviewalDate,
reviewedBy,
status,
subscriptionDisplayName,
subscriptionId,
subscriptionName,
systemData,
tags,
type
FROM azure.billing.billing_requests
WHERE billing_account_name = '{{ billing_account_name }}' -- required
AND billing_profile_name = '{{ billing_profile_name }}' -- required
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}'
AND top = '{{ top }}'
AND skip = '{{ skip }}'
AND count = '{{ count }}'
AND search = '{{ search }}'
;
Gets a billing request by its ID.
SELECT
id,
name,
additionalInformation,
billingAccountDisplayName,
billingAccountId,
billingAccountName,
billingAccountPrimaryBillingTenantId,
billingProfileDisplayName,
billingProfileId,
billingProfileName,
billingScope,
createdBy,
creationDate,
customerDisplayName,
customerId,
customerName,
decisionReason,
expirationDate,
invoiceSectionDisplayName,
invoiceSectionId,
invoiceSectionName,
justification,
lastUpdatedBy,
lastUpdatedDate,
provisioningState,
recipients,
requestScope,
reviewalDate,
reviewedBy,
status,
subscriptionDisplayName,
subscriptionId,
subscriptionName,
systemData,
tags,
type
FROM azure.billing.billing_requests
WHERE billing_request_name = '{{ billing_request_name }}' -- required
;
The list of billing requests submitted for the billing account.
SELECT
id,
name,
additionalInformation,
billingAccountDisplayName,
billingAccountId,
billingAccountName,
billingAccountPrimaryBillingTenantId,
billingProfileDisplayName,
billingProfileId,
billingProfileName,
billingScope,
createdBy,
creationDate,
customerDisplayName,
customerId,
customerName,
decisionReason,
expirationDate,
invoiceSectionDisplayName,
invoiceSectionId,
invoiceSectionName,
justification,
lastUpdatedBy,
lastUpdatedDate,
provisioningState,
recipients,
requestScope,
reviewalDate,
reviewedBy,
status,
subscriptionDisplayName,
subscriptionId,
subscriptionName,
systemData,
tags,
type
FROM azure.billing.billing_requests
WHERE billing_account_name = '{{ billing_account_name }}' -- required
AND filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}'
AND top = '{{ top }}'
AND skip = '{{ skip }}'
AND count = '{{ count }}'
AND search = '{{ search }}'
;
The list of billing requests submitted by a user.
SELECT
id,
name,
additionalInformation,
billingAccountDisplayName,
billingAccountId,
billingAccountName,
billingAccountPrimaryBillingTenantId,
billingProfileDisplayName,
billingProfileId,
billingProfileName,
billingScope,
createdBy,
creationDate,
customerDisplayName,
customerId,
customerName,
decisionReason,
expirationDate,
invoiceSectionDisplayName,
invoiceSectionId,
invoiceSectionName,
justification,
lastUpdatedBy,
lastUpdatedDate,
provisioningState,
recipients,
requestScope,
reviewalDate,
reviewedBy,
status,
subscriptionDisplayName,
subscriptionId,
subscriptionName,
systemData,
tags,
type
FROM azure.billing.billing_requests
WHERE filter = '{{ filter }}'
AND orderBy = '{{ orderBy }}'
AND top = '{{ top }}'
AND skip = '{{ skip }}'
AND count = '{{ count }}'
AND search = '{{ search }}'
;
INSERT examples
- create_or_update
- Manifest
Create or update a billing request.
INSERT INTO azure.billing.billing_requests (
properties,
tags,
billing_request_name
)
SELECT
'{{ properties }}',
'{{ tags }}',
'{{ billing_request_name }}'
RETURNING
id,
name,
properties,
systemData,
tags,
type
;
# Description fields are for documentation purposes
- name: billing_requests
props:
- name: billing_request_name
value: "{{ billing_request_name }}"
description: Required parameter for the billing_requests resource.
- name: properties
description: |
A request submitted by a user to manage billing. Users with an owner role on the scope can approve or decline these requests.
value:
provisioningState: "{{ provisioningState }}"
additionalInformation: "{{ additionalInformation }}"
reviewedBy:
tenantId: "{{ tenantId }}"
objectId: "{{ objectId }}"
upn: "{{ upn }}"
reviewalDate: "{{ reviewalDate }}"
billingAccountId: "{{ billingAccountId }}"
billingAccountName: "{{ billingAccountName }}"
billingAccountDisplayName: "{{ billingAccountDisplayName }}"
billingAccountPrimaryBillingTenantId: "{{ billingAccountPrimaryBillingTenantId }}"
billingProfileId: "{{ billingProfileId }}"
billingProfileName: "{{ billingProfileName }}"
billingProfileDisplayName: "{{ billingProfileDisplayName }}"
createdBy:
tenantId: "{{ tenantId }}"
objectId: "{{ objectId }}"
upn: "{{ upn }}"
creationDate: "{{ creationDate }}"
expirationDate: "{{ expirationDate }}"
decisionReason: "{{ decisionReason }}"
invoiceSectionId: "{{ invoiceSectionId }}"
invoiceSectionName: "{{ invoiceSectionName }}"
invoiceSectionDisplayName: "{{ invoiceSectionDisplayName }}"
customerId: "{{ customerId }}"
customerName: "{{ customerName }}"
customerDisplayName: "{{ customerDisplayName }}"
subscriptionId: "{{ subscriptionId }}"
subscriptionName: "{{ subscriptionName }}"
subscriptionDisplayName: "{{ subscriptionDisplayName }}"
justification: "{{ justification }}"
recipients:
- tenantId: "{{ tenantId }}"
objectId: "{{ objectId }}"
upn: "{{ upn }}"
requestScope: "{{ requestScope }}"
billingScope: "{{ billingScope }}"
status: "{{ status }}"
type: "{{ type }}"
lastUpdatedBy:
tenantId: "{{ tenantId }}"
objectId: "{{ objectId }}"
upn: "{{ upn }}"
lastUpdatedDate: "{{ lastUpdatedDate }}"
- 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
Create or update a billing request.
REPLACE azure.billing.billing_requests
SET
properties = '{{ properties }}',
tags = '{{ tags }}'
WHERE
billing_request_name = '{{ billing_request_name }}' --required
RETURNING
id,
name,
properties,
systemData,
tags,
type;