Automation of Azure ADB2C Configuration

Obaidur Rahman Syed 0 Reputation points
2024-05-26T06:24:01.6566667+00:00

Hello Everyone

I have a project where I need to automate the Azure AD B2C configuration using Terraform. The main tasks involve registering applications and maintaining custom policies. Could you please help me get started and guide me on any available scripts related to this?

Thanks & Regards

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

1 answer

Sort by: Most helpful
  1. Shweta Mathur 28,771 Reputation points Microsoft Employee
    2024-05-28T10:37:40.8166667+00:00

    Hi @Obaidur Rahman Syed ,

    Thanks for reaching out.

    There is no way to maintain IEF custom policies and user flows via Terraform. The only what you can manage via Terraform is B2C applications using the azuread_application provider.

    You can refer Terraform official documentation is good with examples: https://registry.terraform.io/providers/hashicorp/azuread/latest/docs/resources/application

    https://registry.terraform.io/providers/hashicorp/azurerm/latest/docs/resources/aadb2c_directory

    Reference ARM API for B2C tenant creations and the Security section indicating the type of auth required: https://docs.microsoft.com/en-us/rest/api/activedirectory/b2c-tenants/create?tabs=HTTP

    Hope this will help.

    Thanks,

    Shweta

    Please remember to "Accept Answer" if answer helped you.

    0 comments No comments