steampipe plugin install azure

Table: azure_key_vault_deleted_vault - Query Azure Key Vaults using SQL

Azure Key Vault is a cloud service for securely storing and accessing secrets. A secret is anything that you want to tightly control access to, such as API keys, passwords, certificates, or cryptographic keys. Azure Key Vault handles requesting and renewing Transport Layer Security (TLS) certificates.

Table Usage Guide

The azure_key_vault_deleted_vault table provides insights into the deleted vaults within Azure Key Vault. As a security analyst, explore vault-specific details through this table, including deletion dates, recovery levels, and associated metadata. Utilize it to uncover information about deleted vaults, such as their scheduled purge dates, recovery ids, and the geographical location of the vaults.

Examples

Basic info

Discover the segments that have been deleted from your Azure Key Vault, including when they were deleted and when they are scheduled for permanent removal. This can be useful for auditing purposes, ensuring data integrity, and managing your digital assets.

select
name,
id,
type,
deletion_date,
scheduled_purge_date
from
azure_key_vault_deleted_vault;
select
name,
id,
type,
deletion_date,
scheduled_purge_date
from
azure_key_vault_deleted_vault;

List deleted vaults with scheduled purge date more than 1 day

Explore which Azure Key Vaults have been deleted but are scheduled for purge after more than one day. This can be useful for reviewing and managing your data retention and recovery strategies.

select
name,
id,
type,
deletion_date,
scheduled_purge_date
from
azure_key_vault_deleted_vault
where
scheduled_purge_date > (current_date - interval '1' day);
select
name,
id,
type,
deletion_date,
scheduled_purge_date
from
azure_key_vault_deleted_vault
where
date(scheduled_purge_date) > date('now', '-1 day');

Schema for azure_key_vault_deleted_vault

NameTypeOperatorsDescription
_ctxjsonbSteampipe context in JSON form.
akasjsonbArray of globally unique identifier strings (also known as) for the resource.
cloud_environmenttextThe Azure Cloud Environment.
deletion_datetimestamp with time zoneThe deleted date of the vault.
idtextContains ID to identify a deleted vault uniquely.
nametext=The friendly name that identifies the deleted vault.
regiontext=The Azure region/location in which the resource is located.
resource_grouptextThe resource group which holds this resource.
scheduled_purge_datetimestamp with time zoneThe scheduled purged date of the vault.
sp_connection_nametext=, !=, ~~, ~~*, !~~, !~~*Steampipe connection name.
sp_ctxjsonbSteampipe context in JSON form.
subscription_idtext=, !=, ~~, ~~*, !~~, !~~*The Azure Subscription ID in which the resource is located.
tagsjsonbA map of tags for the resource.
titletextTitle of the resource.
typetextType of the resource.
vault_idtextThe resource id of the original vault.

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_key_vault_deleted_vault