You are configuring a custom gateway domain for an Azure API Management (APIM) instance named `apim-prod`. The SSL/TLS certificate for the custom domain `api.contoso.com` is stored in an Azure Key Vault named `kv-prod`. The security team requires that the custom domain must automatically use the latest version of the certificate whenever it is renewed in the Key Vault. You have enabled a system-assigned managed identity for the `apim-prod` instance. Which configuration steps should you implement to meet these requirements?
- AConfigure an access policy in the key vault that grants the API Management system-assigned managed identity the Get permission for Certificates. In the API Management custom domain settings, configure the certificate using a Key Vault certificate URI that includes the specific certificate version.
- BConfigure an access policy in the key vault that grants the API Management system-assigned managed identity the Get permission for Secrets. In the API Management custom domain settings, configure the certificate using a Key Vault secret URI that includes the specific secret version.
- Configure an access policy in the key vault that grants the API Management system-assigned managed identity the Get permission for Secrets. In the API Management custom domain settings, configure the certificate using a Key Vault secret URI that excludes the specific secret version.Answer
- DConfigure an access policy in the key vault that grants the API Management built-in service principal the Get permission for Keys. In the API Management custom domain settings, configure the certificate using a Key Vault secret URI that excludes the specific secret version.
Answer
Configure an access policy in the key vault that grants the API Management system-assigned managed identity the Get permission for Secrets. In the API Management custom domain settings, configure the certificate using a Key Vault secret URI that excludes the specific secret version.
To configure a custom domain in Azure API Management using a certificate from Key Vault with auto-rotation, two conditions must be met: First, API Management must be granted 'Secret Get' permission in Key Vault. This is because SSL/TLS certificates containing private keys are accessed as secrets. Second, the secret identifier URI specified in API Management must exclude the version segment, prompting API Management to periodically pull the latest version of the certificate.
Step-by-Step Solution
Key Concept
Key Vault integration for custom domains in Azure API Management with certificate auto-rotation.
Estimated Time:3m 0s