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

Tarjei Ylvisåker 56 Reputation points
2022-10-04T15:00:54.753+00:00

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.
20,630 questions
{count} vote

1 answer

Sort by: Most helpful
  1. Dan Rios 1,815 Reputation points MVP
    2023-09-18T09:22:38.2366667+00:00

    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.

    https://github.com/Azure/bicep/issues/7724#issuecomment-1197401440

    0 comments No comments