Aether Dynamics has an Azure subscription named sub-aether-prod. You deploy an Azure Storage account named sa-aether-data and an Azure Key Vault named kv-aether-keys. To comply with security standards, all data stored in sa-aether-data must be encrypted using customer-managed keys (CMK). You configure a user-assigned managed identity named uami-storage-enc. The key vault is configured with retention and purge prevention settings active, and uses the Vault access policy permission model. You configure sa-aether-data to use CMK and select uami-storage-enc as the encryption identity. However, when you attempt to save the configuration, the operation fails with an access denied error. What is the most likely cause of this failure?
- The vault access policy for kv-aether-keys is configured to grant Get, Wrap Key, and Unwrap Key permissions to the system-assigned managed identity of sa-aether-data, but no permissions are assigned to uami-storage-enc.Cevap
- BThe user-assigned managed identity uami-storage-enc is assigned the Owner role for the resource group containing the key vault, but no vault access policies are configured for it.
- CThe network routing configuration on sa-aether-data restricts public access, and the setting to allow trusted Microsoft services to access the storage account is disabled.
- DThe user-assigned managed identity uami-storage-enc is assigned the Reader role at the key vault scope.
Cevap
The vault access policy for kv-aether-keys is configured to grant Get, Wrap Key, and Unwrap Key permissions to the system-assigned managed identity of sa-aether-data, but no permissions are assigned to uami-storage-enc.
When a storage account is configured to use customer-managed keys (CMK) with a user-assigned managed identity, that specific user-assigned identity (not the system-assigned identity) must be granted the required Key Vault data-plane permissions (Get, Wrap Key, and Unwrap Key) in the Key Vault access policies. If permissions are granted to the system-assigned identity instead, the storage account will fail to authenticate using the configured user-assigned identity, resulting in an access denied error.
Adım Adım Çözüm
Anahtar Kavram
Configure Storage Encryption and Customer-Managed Keys
Tahmini Süre:2m 30s