I’m automating creation of Web Apps for our organization via Azure DevOps and ARM Templates. One thing that is not documented is adding Identity Providers to the Web Apps.
There is a document explaining how to do that manually via Portal, but there are no examples available for ARM Templates or even Azure PowerShell.
The Identity Providers that we are using are utilizing Microsoft Entra ID and OpenID:
2
Answers
Identity provider
need to config viaMicrosoft.Web/sites/config
+authsettingsV2
, docsI find a sample for you. Links
Or you can search in github with
org:azure Microsoft.Web/sites authsettingsV2 language:Bicep
To add any identity provider for azure app service authentication, you need to use
Microsoft.Web/sites/config
authsettings
as shown in the below way.Reference MS Doc: App service ARM template
/authsettings
:Complete code:
Note: You can add any identity provider in the above format according to the requirement.
Output:
Also, you can refer this SO for similar configuration.