vw_associated_tenants
Creates, updates, deletes, gets or lists a vw_associated_tenants
resource.
Overview
Name | vw_associated_tenants |
Type | View |
Id | azure.billing.vw_associated_tenants |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
tags as tags,
JSON_EXTRACT(properties, '$.provisioningState') as "provisioning_state",
JSON_EXTRACT(properties, '$.displayName') as "display_name",
JSON_EXTRACT(properties, '$.tenantId') as "tenant_id",
JSON_EXTRACT(properties, '$.billingManagementState') as "billing_management_state",
JSON_EXTRACT(properties, '$.provisioningManagementState') as "provisioning_management_state",
JSON_EXTRACT(properties, '$.provisioningBillingRequestId') as "provisioning_billing_request_id",
billingAccountName,
associatedTenantName
FROM azure.billing.associated_tenants
WHERE billingAccountName = 'replace-me';
SELECT
tags as tags,
json_extract_path_text(properties, '$.provisioningState') as "provisioning_state",
json_extract_path_text(properties, '$.displayName') as "display_name",
json_extract_path_text(properties, '$.tenantId') as "tenant_id",
json_extract_path_text(properties, '$.billingManagementState') as "billing_management_state",
json_extract_path_text(properties, '$.provisioningManagementState') as "provisioning_management_state",
json_extract_path_text(properties, '$.provisioningBillingRequestId') as "provisioning_billing_request_id",
billingAccountName,
associatedTenantName
FROM azure.billing.associated_tenants
WHERE billingAccountName = 'replace-me';