Share via

BasicV2 APIM — /identityProviders/aad PUT returns 502 on all attempts — developer portal AAD sign-in cannot be configured

Mike 20 Reputation points
2026-05-08T14:10:29.8833333+00:00

The APIM developer portal cannot be configured for Azure AD sign-in.

Every write attempt to the /identityProviders/aad ARM sub-resource

returns HTTP 502 Bad Gateway. The ARM GET on /identityProviders

returns 200 with 0 results, confirming no provider has ever been

saved.

What was attempted

  1. Portal wizard ("Enable Azure AD") — ran twice. All 5 steps show

green checkmarks but nothing is written. Developer portal confirms no

AAD sign-in option appears.

  1. Manual "Add identity provider" form (Identities blade) — same 502.
  2. ARM REST API — tested on API versions 2021-08-01, 2022-08-01,

2023-09-01-preview — all 502 on PUT.

  1. APIM direct management API with admin SAS token — 502.
  2. After assigning API Management Service Contributor RBAC and

re-authenticating interactively — still 502.

What works on the same instance

  • GET /identityProviders → 200 (0 results)
  • PUT /openidConnectProviders → succeeds
  • All other APIM management operations work normally

This confirms the 502 is specific to the /identityProviders write

path on this instance, not a general management plane outage.

App registration — fully configured per MS recommendations

  • ✅ SPA redirect URI (new developer portal)
  • ✅ Web redirect URI (deprecated portal)
  • ✅ Access tokens and ID tokens enabled
  • ✅ Directory.ReadAll Application permission — admin consent granted
  • ✅ User.Read Delegated permission — admin consent granted
  • ✅ Optional claims (email, family_name, given_name) on ID token
  • ✅ Client secret valid, not expired
  • ✅ MSAL selected as client library

Error is unchanged after all of the above.

Question

Is this a known issue with the BasicV2 management plane for the

/identityProviders sub-resource? The openidConnectProviders path

works on the same instance, so the fault appears specific to the

identity providers backend. Is there a way to repair this without

recreating the APIM instance?

Azure API Management
Azure API Management

An Azure service that provides a hybrid, multi-cloud management platform for APIs.


Answer accepted by question author

Pravallika KV 15,465 Reputation points Microsoft External Staff Moderator
2026-05-08T15:03:44.2733333+00:00

Hi @Mike ,

Thanks for the confirmation, glad the issue is resolved.

This is a known issue, and we engaged backend team to investigate and resolve the issue. A hot fix has been deployed to all the regions; you should be able to configure the Entra ID Authentication for V2 SKUs. 

Hope this helps!


If the resolution was helpful, kindly take a moment to click on User's imageand click on Yes for was this answer helpful. And, if you have any further query do let us know.

Was this answer helpful?

2 people found this answer helpful.
0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.