AzureKeyVault (version 1.0.3)

purge_key_vault: Purge a deleted Azure Key Vault

Description

Method for the AzureRMR::az_subscription and AzureRMR::az_resource_group classes.

Value

NULL on successful purging.

Usage

purge_key_vault(name, location, confirm=TRUE)

Arguments

  • name,location: The name and location of the key vault.

  • confirm: Whether to ask for confirmation before permanently deleting the vault.

Details

This method permanently deletes a soft-deleted key vault. Note that it will fail if the vault has purge protection enabled.

See Also

create_key_vault, get_key_vault, delete_key_vault, list_deleted_key_vaults, az_key_vault,

Azure Key Vault documentation, Azure Key Vault API reference

Examples

Run this code
# NOT RUN {
rg <- AzureRMR::get_azure_login()$
    get_subscription("subscription_id")$
    get_resource_group("rgname")

# assuming the vault has soft-delete enabled, and is in the same location as its RG
rg$delete_key_vault("mykeyvault")
rg$purge_key_vault("mykeyvault", rg$location)

# }

Run the code above in your browser using DataLab