Skip to main content

billing_account

Creates, updates, deletes, gets or lists a billing_account resource.

Overview​

Namebilling_account
TypeResource
Idazure.subscription.billing_account

Fields​

The following fields are returned by SELECT queries:

NameDatatypeDescription
idstringFully qualified resource ID for the resource. Ex - /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}.
namestringThe name of the resource.
allowTransfersbooleanDetermine if the transfers are allowed for the billing account.
serviceTenantsarrayService tenant for the billing account.
systemDataobjectAzure Resource Manager metadata containing createdBy and modifiedBy information.
typestringThe type of the resource. E.g. "Microsoft.Compute/virtualMachines" or "Microsoft.Storage/storageAccounts".

Methods​

The following methods are available for this resource:

NameAccessible byRequired ParamsOptional ParamsDescription
get_policyselectbilling_account_idGet 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.

NameDatatypeDescription
billing_account_idstringThe name of the resource. Required.

SELECT examples​

Get Billing Account Policy.

SELECT
id,
name,
allowTransfers,
serviceTenants,
systemData,
type
FROM azure.subscription.billing_account
WHERE billing_account_id = '{{ billing_account_id }}' -- required
;