You are configuring Azure API Management (APIM) to authenticate to a secure backend API using a user-assigned managed identity. You have already created the identity and associated it with the APIM instance. You add the authentication-managed-identity policy to the inbound processing section of the API. Which attribute must you include in the policy to identify the user-assigned managed identity?
- Aresource
- Bsecret-identifier
- client-id (or identity-id)Answer
- Dtenant-id
Answer
The correct attribute is client-id (or identity-id).
To authenticate to a backend API using a user-assigned managed identity, the authentication-managed-identity policy must include either the client-id or identity-id attribute. If these attributes are omitted, Azure API Management defaults to using the system-assigned managed identity.
Step-by-Step Solution
Key Concept
Configuring user-assigned managed identity authentication in Azure API Management policies
Estimated Time:1m 0s