purge_key_vault {AzureKeyVault} | R Documentation |
Purge a deleted Azure Key Vault
Description
Method for the AzureRMR::az_subscription and AzureRMR::az_resource_group classes.
Details
This method permanently deletes a soft-deleted key vault. Note that it will fail if the vault has purge protection enabled.
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.
Value
NULL on successful purging.
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
## 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)
## End(Not run)
[Package AzureKeyVault version 1.0.5 Index]