Bicep - App Service - Authentication AAD - Automatically create App Registration

Tarjei Ylvisåker 56 Reputation points

Hi all,

Using Bicep to deploy Azure App Service.

Want to utilize Azure AD authentication on the App Service, to allow Azure API Management to authenticate against the App Service with Managed Identity.

My question is, using Bicep and the App Service "authsettingsV2" to configure the Authentication - can this be used to automatically create the Azure AD App Registration, as on option 1 in this guide: configure-authentication-provider-aad

Or do I have to manually create the App Registration to be able to set up Authentication with Bicep?

I tested setting this up manually in the Portal, to take a look at the "Export template" json, but there is no configuration there related to authentication, neither on the App Service or the Resource Group where it belongs.

If it is possible to automatically create App Registration as in the link below, is there any resources (examples) available on how to configure this in Bicep, beside the existing; config-authsettingsv2

Many thanks!

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
19,851 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Dan Rios 1,425 Reputation points MVP

    I'm not aware of this being possible currently. However, on the Bicep roadmap is Graph AAD integration, which will then open the possibility to automate this process via Bicep.

    0 comments No comments