Share via

Support for creating AAD App registration using Bicep/ARM

NSimpraga 176 Reputation points
Oct 21, 2022, 11:20 AM

Greetings,

is there still not support for creating AAD App registrations using Bicep/ARM? It is quite ridiculous that 3rd party IAC like Terraform have this capability, while Micosoft's own - Bicep - doesn't.

I've read that the alternative is to use deployment scripts in Bicep, but there's a huge problem with this - I would need to access the created App's secrets using output, which is considered insecure even by Microsoft!

There might be some workaround by putting the secret in a key vault and retrieving it, but that complicates things a lot.

Any suggestions for this?

Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
24,239 questions
{count} votes

5 answers

Sort by: Most helpful
  1. Lee Richardson 131 Reputation points MVP
    Jan 12, 2023, 4:26 PM

    It's January 2023, are App Registrations still not supported in Bicep? Jon Reginbald's workaround is fine, but like OP said terraform has had support for this feature for years, and the whole point of the Bicep DSL is to avoid writing imperative style code.

    7 people found this answer helpful.
    0 comments No comments

  2. Hugo R. Bohorquez 6 Reputation points
    Dec 23, 2022, 5:49 AM

    Any updates on this? Thanks!

    1 person found this answer helpful.
    0 comments No comments

  3. risolis 8,741 Reputation points
    Oct 23, 2022, 2:27 AM

    Hello @NSimpraga

    Thank you for sharing this question on this community space.

    I would like to gather the next articles which fits into your previous statement the one you were describing previously.... So please direct yourself down below:

    https://stackoverflow.com/questions/69120936/how-do-i-use-bicep-or-arm-to-create-an-ad-app-registration-and-roles

    https://reginbald.medium.com/creating-app-registration-with-arm-bicep-b1d48a287abb

    I hope you can find this useful to overcome your concern.

    Looking forward to your feedback,

    Cheers,

    Please "Accept the answer" if the information helped you. This will help us and others in the community as well.


  4. Jose Aviles 0 Reputation points
    May 10, 2023, 10:26 AM

    The aws identity service does support IaC...

    0 comments No comments

  5. Chrison Simtian 0 Reputation points
    Mar 6, 2025, 7:33 PM

    Its 2025, AAD got rebranded to MS Entra, much progress has been made. Still no Bicep support :-(

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.