Skip to main content

associated_tenants

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

Overview

Nameassociated_tenants
TypeResource
Idazure.billing.associated_tenants

Fields

NameDatatypeDescription
associatedTenantNametextfield from the properties object
billingAccountNametextfield from the properties object
billing_management_statetextfield from the properties object
display_nametextfield from the properties object
provisioning_billing_request_idtextfield from the properties object
provisioning_management_statetextfield from the properties object
provisioning_statetextfield from the properties object
tagstextDictionary 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 < > % & \ ? /
tenant_idtextfield from the properties object

Methods

NameAccessible byRequired ParamsDescription
getSELECTassociatedTenantName, billingAccountNameGets an associated tenant by ID.
list_by_billing_accountSELECTbillingAccountNameLists the associated tenants that can collaborate with the billing account on commerce activities like viewing and downloading invoices, managing payments, making purchases, and managing or provisioning licenses.
create_or_updateINSERTassociatedTenantName, billingAccountNameCreate or update an associated tenant for the billing account.
deleteDELETEassociatedTenantName, billingAccountNameDeletes an associated tenant for a billing account.

SELECT examples

Lists the associated tenants that can collaborate with the billing account on commerce activities like viewing and downloading invoices, managing payments, making purchases, and managing or provisioning licenses.

SELECT
associatedTenantName,
billingAccountName,
billing_management_state,
display_name,
provisioning_billing_request_id,
provisioning_management_state,
provisioning_state,
tags,
tenant_id
FROM azure.billing.vw_associated_tenants
WHERE billingAccountName = '{{ billingAccountName }}';

INSERT example

Use the following StackQL query and manifest file to create a new associated_tenants resource.

/*+ create */
INSERT INTO azure.billing.associated_tenants (
associatedTenantName,
billingAccountName,
tags,
properties
)
SELECT
'{{ associatedTenantName }}',
'{{ billingAccountName }}',
'{{ tags }}',
'{{ properties }}'
;

DELETE example

Deletes the specified associated_tenants resource.

/*+ delete */
DELETE FROM azure.billing.associated_tenants
WHERE associatedTenantName = '{{ associatedTenantName }}'
AND billingAccountName = '{{ billingAccountName }}';