Skip to main content

vw_long_term_retention_backups

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

Overview

Namevw_long_term_retention_backups
TypeView
Idazure.sql.vw_long_term_retention_backups

Fields

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

SQL Definition

SELECT
JSON_EXTRACT(properties, '$.serverName') as "server_name",
JSON_EXTRACT(properties, '$.serverCreateTime') as "server_create_time",
JSON_EXTRACT(properties, '$.databaseName') as "database_name",
JSON_EXTRACT(properties, '$.databaseDeletionTime') as "database_deletion_time",
JSON_EXTRACT(properties, '$.backupTime') as "backup_time",
JSON_EXTRACT(properties, '$.backupExpirationTime') as "backup_expiration_time",
JSON_EXTRACT(properties, '$.backupStorageRedundancy') as "backup_storage_redundancy",
JSON_EXTRACT(properties, '$.requestedBackupStorageRedundancy') as "requested_backup_storage_redundancy",
JSON_EXTRACT(properties, '$.isBackupImmutable') as "is_backup_immutable",
JSON_EXTRACT(properties, '$.backupStorageAccessTier') as "backup_storage_access_tier",
subscriptionId,
resourceGroupName,
locationName,
longTermRetentionServerName,
longTermRetentionDatabaseName,
backupName
FROM azure.sql.long_term_retention_backups
WHERE subscriptionId = 'replace-me' AND locationName = 'replace-me';