Support for creating AAD App registration using Bicep/ARM

NSimpraga 166 Reputation points
2022-10-21T11:20:05.643+00:00

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.
21,304 questions
{count} votes

4 answers

Sort by: Most helpful
  1. Lee Richardson 126 Reputation points MVP
    2023-01-12T16:26:54.7133333+00:00

    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.

    6 people found this answer helpful.
    0 comments No comments

  2. Hugo R. Bohorquez 6 Reputation points
    2022-12-23T05:49:43.627+00:00

    Any updates on this? Thanks!

    1 person found this answer helpful.
    0 comments No comments

  3. risolis 8,721 Reputation points
    2022-10-23T02:27:47.573+00:00

    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
    2023-05-10T10:26:46.06+00:00

    The aws identity service does support IaC...

    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.