You are authoring a Bicep template to deploy a new Azure Key Vault. The Key Vault must meet the following security requirements:
* Use Azure Role-Based Access Control (RBAC) for authorization instead of vault access policies.
* Prevent the permanent deletion of the Key Vault, its secrets, keys, and certificates by any user, including administrators.
Which two properties must you configure within the `properties` block of the Key Vault resource definition?
- `enableRbacAuthorization` set to `true`Answer
- `enablePurgeProtection` set to `true`Answer
- C`enableSoftDelete` set to `false`
- DAn `accessPolicies` array containing tenant and permission mappings
Answer
Configure `enableRbacAuthorization` set to `true` and `enablePurgeProtection` set to `true`.
To configure Azure Key Vault via a Bicep/ARM template for Azure RBAC authorization and prevent permanent deletion, you must configure two key properties within the vault's properties block: setting `enableRbacAuthorization` to `true` ensures that Azure RBAC is used for data-plane authorization, and setting `enablePurgeProtection` to `true` prevents the immediate purging of deleted items. This enforces the soft-delete retention policy and secures key vault content against accidental or malicious permanent deletion.
Step-by-Step Solution
Key Concept
Configuring Azure Key Vault properties in infrastructure-as-code templates to enforce RBAC authorization and purge protection.