Can we add manage Azure AD using Bicep?. Ex: Implementing PIM using BICEP

Abhinav Chamola 0 Reputation points
2023-02-06T17:45:12.4066667+00:00

Can we add manage Azure AD using Bicep?. Ex: Implementing PIM using BICEP

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

2 answers

Sort by: Most helpful
  1. Sandeep G-MSFT 14,811 Reputation points Microsoft Employee
    2023-02-09T03:51:39.7266667+00:00

    @Abhinav Chamola

    Yes, you can use Bicep to manage Azure AD. Bicep is a domain-specific language for authoring Azure Resource Manager templates. You can use Bicep to deploy Azure AD resources, such as applications, service principals, and role assignments.

    To deploy Azure AD resources using Bicep, you'll need to first set up your development and deployment environments. You can use Visual Studio Code and the Bicep extension to create Bicep files. Once you have your Bicep files ready, you can deploy them using Azure Pipelines or GitHub Actions.

    For example, you can use the following Bicep code to create an Azure AD application:

    User's image

    You can also refer below articles for more information.

    https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/overview?tabs=bicep

    https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/quickstart-create-bicep-use-visual-studio-code?source=recommendations&tabs=CLI

    https://learn.microsoft.com/en-us/azure/azure-resource-manager/bicep/quickstart-create-template-specs?source=recommendations&tabs=azure-powershell

    Let me know if you have any further questions.

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


  2. Alexander Sehr 0 Reputation points Microsoft Employee
    2023-11-16T22:00:44.2566667+00:00

    Hey @Shiva Naru & @Abhinav Chamola , I just found this post and would like to correct the response. The posted provider does not exist, which es relatively easy to see as it doesn't even have an API version and all in all is not valid Bicep code.

    That said, there are good news regardless. The Bicep Product Group has been hard at work to actually create a corresponding provider, and shared some updates on it in the September Community Call you can find here: https://www.youtube.com/watch?v=fwuXRqMW8DE

    The issue is being tracked here: https://github.com/Azure/bicep/issues/7724 and the feature is currently in Private Preview.

    0 comments No comments