pjfebbraro / terraform-provider-azureadb2cief

Mozilla Public License 2.0
1 stars 3 forks source link

Azure Active Directory B2C Identity Experience Framework (b2cief) Provider

The Azure Provider can be used to configure custom policies in Azure Active Directory B2C using the Microsoft Graph Beta API. Documentation regarding the Data Sources and Resources supported by the provider can be found in the navigation to the left.

Example Usage

# Configure Terraform
terraform {
  required_providers {
    azureadb2cief = {
      source  = "pjfebbraro/azureadb2cieif"
      version = "~> 0.1.0"
    }
  }
}

# Configure the Provider
provider "azuread" {
  tenant_id = "00000000-0000-0000-0000-000000000000"
}

Authenticating to the Microsoft Graph API

Azure CLI and Service Principal with Client Id and Secret are Supported:

Argument Reference

The following arguments are supported:

More Information about setting up proper Microsoft Graph API Access can be found here


For Azure CLI authentication, the following fields can be set:

Logging in with the CLI can be accomplished with the following:

az login --allow-no-subscriptions --output none --service-principal --tenant "${TENANT_ID}" --username "${CLIENT_ID}" --password "${CLIENT_SECRET}"

Logging and Tracing

Logging output can be controlled with the TF_LOG or TF_PROVIDER_LOG environment variables. Exporting TF_LOG=DEBUG will increase the log verbosity and emit HTTP request and response traces to stdout when running Terraform. This output is very useful when reporting a bug in the provider.

Note that whilst we make every effort to remove authentication tokens from HTTP traces, they can still contain very identifiable and personal information which you should carefully censor before posting on our issue tracker.