You need to secure the connection between an Azure API Management (APIM) instance and a backend API hosted on Azure App Service. The backend API requires Azure Active Directory (Azure AD) authentication. You want to use a user-assigned managed identity named apim-backend-identity to authenticate the APIM instance against the backend API. Which of the following configuration steps should you perform? Select two.
- Associate the user-assigned managed identity named apim-backend-identity with the API Management instance.Cevap
- In the inbound section of the API Management policy, add the authentication-managed-identity policy, specifying the backend API's resource identifier and the client ID of apim-backend-identity.Cevap
- CIn the inbound section of the API Management policy, add the authentication-managed-identity policy, specifying the resource identifier without providing a client ID.
- DIn the outbound section of the API Management policy, add the authentication-managed-identity policy, specifying the backend API's resource identifier and the client ID of apim-backend-identity.
- ECreate an Azure Key Vault access policy that grants the API Management system-assigned managed identity the Secret Get permission to fetch the backend application's client secret.
Cevap
Associate the user-assigned managed identity named apim-backend-identity with the API Management instance, and add the authentication-managed-identity policy in the inbound section of the API Management policy, specifying the backend API's resource identifier and the client ID of apim-backend-identity.
To secure backend connections using a user-assigned managed identity, you must first associate the identity with the API Management instance. Next, you must configure the inbound policy section using the authentication-managed-identity policy. Since user-assigned managed identities are not the default, you must explicitly specify the client ID of the user-assigned identity within the policy configuration so that the correct token is obtained and attached to the request.
Adım Adım Çözüm
Anahtar Kavram
Securing backend services using Managed Identity in Azure API Management