vw_customers
Creates, updates, deletes, gets or lists a vw_customers
resource.
Overview
Name | vw_customers |
Type | View |
Id | azure.billing.vw_customers |
Fields
See the SQL Definition (view DDL) for fields returned by this view.
SQL Definition
- Sqlite3
- Postgres
SELECT
tags as tags,
JSON_EXTRACT(properties, '$.billingProfileDisplayName') as "billing_profile_display_name",
JSON_EXTRACT(properties, '$.billingProfileId') as "billing_profile_id",
JSON_EXTRACT(properties, '$.displayName') as "display_name",
JSON_EXTRACT(properties, '$.systemId') as "system_id",
JSON_EXTRACT(properties, '$.status') as "status",
JSON_EXTRACT(properties, '$.enabledAzurePlans') as "enabled_azure_plans",
JSON_EXTRACT(properties, '$.resellers') as "resellers",
JSON_EXTRACT(properties, '$.tags') as "tags",
billingAccountName,
billingProfileName,
customerName
FROM azure.billing.customers
WHERE billingAccountName = 'replace-me';
SELECT
tags as tags,
json_extract_path_text(properties, '$.billingProfileDisplayName') as "billing_profile_display_name",
json_extract_path_text(properties, '$.billingProfileId') as "billing_profile_id",
json_extract_path_text(properties, '$.displayName') as "display_name",
json_extract_path_text(properties, '$.systemId') as "system_id",
json_extract_path_text(properties, '$.status') as "status",
json_extract_path_text(properties, '$.enabledAzurePlans') as "enabled_azure_plans",
json_extract_path_text(properties, '$.resellers') as "resellers",
json_extract_path_text(properties, '$.tags') as "tags",
billingAccountName,
billingProfileName,
customerName
FROM azure.billing.customers
WHERE billingAccountName = 'replace-me';