billing_account
Creates, updates, deletes, gets or lists a billing_account resource.
Overview
| Name | billing_account |
| Type | Resource |
| Id | azure.subscription.billing_account |
Fields
The following fields are returned by SELECT queries:
- get_policy
| 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. |
allowTransfers | boolean | Determine if the transfers are allowed for the billing account. |
serviceTenants | array | Service tenant for the billing account. |
systemData | object | Azure Resource Manager metadata containing createdBy and modifiedBy information. |
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 |
|---|---|---|---|---|
get_policy | select | billing_account_id | Get Billing Account Policy. |
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_id | string | The name of the resource. Required. |
SELECT examples
- get_policy
Get Billing Account Policy.
SELECT
id,
name,
allowTransfers,
serviceTenants,
systemData,
type
FROM azure.subscription.billing_account
WHERE billing_account_id = '{{ billing_account_id }}' -- required
;