Formerly known as Azure AI Services or Azure Cognitive Services is a unified collection of prebuilt AI capabilities within the Microsoft Foundry platform
Hi Bairi Rohith Reddy,
Thanks for sharing the details and the exact error message.
What you’re running into is a platform-level limitation, not a misconfiguration on your side. The key part of the error is:
“Invalid rai policy Microsoft. Default. This is system policy which can't be updated.”
In some Azure AI Foundry instances, the Microsoft.Default Responsible AI (RAI) policy is system-managed. When local authentication is disabled, the platform attempts a template update that includes this default RAI policy. For those specific instances, that policy is locked and cannot be modified or redeployed, which causes the InvalidTemplateDeployment failure you’re seeing.
This also explains the difference in behavior between environments:
- Your dev Foundry instances likely don’t have the same system-managed RAI policy state, so disabling local auth succeeds.
- The AME instance appears to have a system-bound
Microsoft.DefaultRAI policy, which blocks the update path used when toggling local authentication.
A few important clarifications:
- This is not related to RBAC permissions or missing roles.
- This is not caused by Azure Policy assignments you can remove.
- There is currently no supported way to manually override or delete the
Microsoft.DefaultRAI policy on an affected Foundry instance.
If disabling local authentication is a compliance requirement for that environment, the supported options today is:
- Recreate the Foundry instance with local authentication disabled from the start,
You can also track updates in the Azure AI Foundry documentation, as behavior around local auth and RAI policies continues to evolve and may change over time.
Hope this helps clarify why you’re seeing this only on one instance and not others.
Do let me know if you have any further queries.
If this answers your query, please do click Accept Answer and Yes for was this answer helpful.
Thankyou!