Table: azure_data_protection_backup_vault - Query Azure Data Protection Backup Vaults using SQL
A Backup Vault in Azure Data Protection is a storage entity in Azure used to manage and store backups. Backup Vaults help in organizing your backups and configuring backup policies for your Azure resources.
Table Usage Guide
The azure_data_protection_backup_vault
table provides insights into Backup Vaults within Azure. As an Infrastructure Engineer, explore detailed information about each backup vault through this table, including its identity, provisioning state, and storage settings. Use this table to manage and optimize your backup strategies, ensuring secure and efficient data protection for your Azure resources.
Examples
Basic backup vault information
Retrieve basic information about your Azure Backup Vaults, including their names, locations, and provisioning states.
select name, location, provisioning_statefrom azure_data_protection_backup_vault;
select name, location, provisioning_statefrom azure_data_protection_backup_vault;
Backup vault storage settings
Explore the storage settings of your Azure Backup Vaults. This can help you understand the storage configuration and optimize your backup storage strategies.
select name, s -> 'datastoreType' as datastore_type, s -> 'type' as storage_typefrom azure_data_protection_backup_vault, jsonb_array_elements(storage_settings) as s;
select name, json_extract(s.value, '$.datastoreType') as datastore_type, json_extract(s.value, '$.type') as storage_typefrom azure_data_protection_backup_vault, json_each(storage_settings) as s;
Managed identity details
List the managed identity details for each Backup Vault, which can be useful for managing access and security configurations.
select name, identity ->> 'type' as identity_type, identity -> 'principalId' as principal_idfrom azure_data_protection_backup_vault;
select name, json_extract(identity, '$.type') as identity_type, json_extract(identity, '$.principalId') as principal_idfrom azure_data_protection_backup_vault;
Backup vault tags
Retrieve tags associated with each Backup Vault to help with resource organization and management.
select name, jsonb_each_text(tags) as tagfrom azure_data_protection_backup_vault;
select name, json_each(tags) as tagfrom azure_data_protection_backup_vault;
Backup vaults in failed provisioning state
Retrieve information about backup vaults that are in a failed provisioning state. This can help in identifying and troubleshooting issues with backup vault deployment.
select name, s ->> 'datastoreType' as datastore_type, s ->> 'type' as storage_typefrom azure_data_protection_backup_vault, jsonb_array_elements(storage_settings) as swhere provisioning_state = 'Failed';
select name, json_extract(s.value, '$.datastoreType') as datastore_type, json_extract(s.value, '$.type') as storage_typefrom azure_data_protection_backup_vault, json_each(storage_settings) as swhere provisioning_state = 'Failed';
Schema for azure_data_protection_backup_vault
Name | Type | Operators | Description |
---|---|---|---|
_ctx | jsonb | Steampipe context in JSON form. | |
akas | jsonb | Array of globally unique identifier strings (also known as) for the resource. | |
cloud_environment | text | The Azure Cloud Environment. | |
id | text | The resource identifier. | |
identity | jsonb | Input Managed Identity Details. | |
location | text | The location of the backup vault. | |
monitoring_settings | jsonb | The Monitoring Settings. | |
name | text | = | The name of the backup vault. |
provisioning_state | text | The provisioning state of the backup vault resource. | |
region | text | The Azure region where the resource is located. | |
resource_group | text | = | The resource group in which the resource is located. |
resource_move_details | jsonb | Details of the resource move for the backup vault. | |
resource_move_state | text | The resource move state for the backup vault. | |
sp_connection_name | text | =, !=, ~~, ~~*, !~~, !~~* | Steampipe connection name. |
sp_ctx | jsonb | Steampipe context in JSON form. | |
storage_settings | jsonb | The storage settings of the backup vault. | |
subscription_id | text | =, !=, ~~, ~~*, !~~, !~~* | The Azure Subscription ID in which the resource is located. |
system_data | jsonb | Metadata pertaining to creation and last modification of the resource. | |
tags | jsonb | Tags associated with the resource. | |
title | text | Title of the resource. | |
type | text | The resource type. |
Export
This table is available as a standalone Exporter CLI. Steampipe exporters are stand-alone binaries that allow you to extract data using Steampipe plugins without a database.
You can download the tarball for your platform from the Releases page, but it is simplest to install them with the steampipe_export_installer.sh
script:
/bin/sh -c "$(curl -fsSL https://steampipe.io/install/export.sh)" -- azure
You can pass the configuration to the command with the --config
argument:
steampipe_export_azure --config '<your_config>' azure_data_protection_backup_vault