Since yesterday morning, we are stuck importing APIs to APIManagement with this error, returned by every "az apim api import" or "az apim api update". Really nothing changed from our side.
ERROR: (ValidationError) Cannot use OAuth2AuthenticationSettings in combination with OAuth2 nor openid.
Code: ValidationError
This is already configured since our first bicep deploy...
When lookup at the exported ARM template of the APIM resource, we see however that both are set for our APIs.
"authenticationSettings": {
"oAuth2": {
"authorizationServerId": "buildappsad"
},
"oAuth2AuthenticationSettings": [
{
"authorizationServerId": "buildappsad"
}
],
"openidAuthenticationSettings": []
},
Also the Azure portal will clear both, when you clear the authentication settings, and will fill both together when you select OAuth2 again. I also tried clearing them using the Portal, next deploying our bicep again (only setting only OAuth2 or either OAuth2AuthenticationSettings for the APIs), but again both properties exist after the deploy! So this proves we set the authentication settings again, and I could determine looking at outputs from my bicep module in the Azure Portal, that the properties where set correctly, having only 1 OAuth2 authentication setting.
We never set OAuth2AuthenticationSettings and OAuth2 at the same time. The DevOps pipeline running the az apim api import's runs on a MS hosted Ubuntu agent (ubuntu-latest).So it seems that whatever we, or the Azure Portal itself, try, sets both OAuth2 setting, as shown in the ARM snippet, however Azure CLI cannot cope with this when updating, or importing to an API...
Did something change to Azure?
Can this be fixed urgently?
Regards,
Tim