# Key Vault RBAC authorization, purge protection, and public access off. ```hcl data "azurerm_client_config" "current" {} resource "azurerm_key_vault" "main" { name = "kv-workload-001" location = var.location resource_group_name = var.resource_group_name tenant_id = data.azurerm_client_config.current.tenant_id sku_name = "standard" enable_rbac_authorization = true purge_protection_enabled = true soft_delete_retention_days = 90 public_network_access_enabled = false } ```