An Azure service that provides a hybrid, multi-cloud management platform for APIs.
Hi @Gottling Sebastian ,
You’re hitting a known quirk: when you set clientLibrary to “MSAL” in the Create/Update call, APIM today still falls back to ADAL unless you explicitly use the value “MSAL-2”. In other words, right now the service expects “MSAL-2” for v2.0 endpoints.
Here’s how you can fix it:
- Change your body to use clientLibrary = "MSAL-2", for example:
{
"properties": {
"clientId": "*****",
"clientSecret":"*****",
"signinTenant":"*****",
"clientLibrary":"MSAL-2",
"allowedTenants":["*****"]
}
}
- Run your az rest PUT again against …/identityProviders/aad?api-version=2024-05-01
- Republish the developer portal (and clear your browser cache just in case).
After that you should see MSAL selected in the portal instead of ADAL.
References:
- Create or Update Identity Provider (REST)
- ApiManagementIdentityProviderPatch.ClientLibrary property
- MSAL migration overview (why use v2.0/MSAL)
Hope this helps!
If the resolution was helpful, kindly take a moment to click on and click on Yes for was this answer helpful. And, if you have any further query do let us know.