Skip to main content

vw_storage_accounts

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

Overview

Namevw_storage_accounts
TypeView
Idazure_stack.storage_admin.vw_storage_accounts

Fields

See the SQL Definition (view DDL) for fields returned by this view.

SQL Definition

SELECT
id as id,
name as name,
location as location,
kind as kind,
tags as tags,
type as type,
JSON_EXTRACT(properties, '$.tenantViewId') as "tenant_view_id",
JSON_EXTRACT(properties, '$.accountType') as "account_type",
JSON_EXTRACT(properties, '$.provisioningState') as "provisioning_state",
JSON_EXTRACT(properties, '$.primaryEndpoints') as "primary_endpoints",
JSON_EXTRACT(properties, '$.creationTime') as "creation_time",
JSON_EXTRACT(properties, '$.primaryLocation') as "primary_location",
JSON_EXTRACT(properties, '$.faultDomain') as "fault_domain",
JSON_EXTRACT(properties, '$.statusOfPrimary') as "status_of_primary",
JSON_EXTRACT(properties, '$.tenantSubscriptionId') as "tenant_subscription_id",
JSON_EXTRACT(properties, '$.tenantStorageAccountName') as "tenant_storage_account_name",
JSON_EXTRACT(properties, '$.tenantResourceGroupName') as "tenant_resource_group_name",
JSON_EXTRACT(properties, '$.deletedTime') as "deleted_time",
JSON_EXTRACT(properties, '$.accountStatus') as "account_status",
JSON_EXTRACT(properties, '$.accountId') as "account_id",
JSON_EXTRACT(properties, '$.encryption') as "encryption",
JSON_EXTRACT(properties, '$.supportsHttpsTrafficOnly') as "supports_https_traffic_only",
JSON_EXTRACT(properties, '$.accessTier') as "access_tier",
JSON_EXTRACT(properties, '$.healthState') as "health_state",
subscriptionId,
location,
accountId
FROM azure_stack.storage_admin.storage_accounts
WHERE subscriptionId = 'replace-me' AND location = 'replace-me';