1. Packages
  2. Azure Classic
  3. API Docs
  4. apimanagement
  5. IdentityProviderAadb2c

We recommend using Azure Native.

Azure v6.22.0 published on Tuesday, Apr 1, 2025 by Pulumi

azure.apimanagement.IdentityProviderAadb2c

Explore with Pulumi AI

Manages an API Management Azure AD B2C Identity Provider.

Example Usage

import * as pulumi from "@pulumi/pulumi";
import * as azure from "@pulumi/azure";
import * as azuread from "@pulumi/azuread";

const example = new azure.core.ResourceGroup("example", {
    name: "example-resources",
    location: "West Europe",
});
const exampleService = new azure.apimanagement.Service("example", {
    name: "example-apim",
    location: example.location,
    resourceGroupName: example.name,
    publisherName: "My Company",
    publisherEmail: "company@terraform.io",
    skuName: "Developer_1",
});
const exampleApplication = new azuread.Application("example", {displayName: "acctestam-example"});
const exampleApplicationPassword = new azuread.ApplicationPassword("example", {
    applicationObjectId: exampleApplication.objectId,
    endDateRelative: "36h",
});
const exampleIdentityProviderAadb2c = new azure.apimanagement.IdentityProviderAadb2c("example", {
    resourceGroupName: example.name,
    apiManagementName: exampleService.name,
    clientId: exampleApplication.applicationId,
    clientSecret: "P@55w0rD!",
    allowedTenant: "myb2ctenant.onmicrosoft.com",
    signinTenant: "myb2ctenant.onmicrosoft.com",
    authority: "myb2ctenant.b2clogin.com",
    signinPolicy: "B2C_1_Login",
    signupPolicy: "B2C_1_Signup",
}, {
    dependsOn: [exampleApplicationPassword],
});
Copy
import pulumi
import pulumi_azure as azure
import pulumi_azuread as azuread

example = azure.core.ResourceGroup("example",
    name="example-resources",
    location="West Europe")
example_service = azure.apimanagement.Service("example",
    name="example-apim",
    location=example.location,
    resource_group_name=example.name,
    publisher_name="My Company",
    publisher_email="company@terraform.io",
    sku_name="Developer_1")
example_application = azuread.Application("example", display_name="acctestam-example")
example_application_password = azuread.ApplicationPassword("example",
    application_object_id=example_application.object_id,
    end_date_relative="36h")
example_identity_provider_aadb2c = azure.apimanagement.IdentityProviderAadb2c("example",
    resource_group_name=example.name,
    api_management_name=example_service.name,
    client_id=example_application.application_id,
    client_secret="P@55w0rD!",
    allowed_tenant="myb2ctenant.onmicrosoft.com",
    signin_tenant="myb2ctenant.onmicrosoft.com",
    authority="myb2ctenant.b2clogin.com",
    signin_policy="B2C_1_Login",
    signup_policy="B2C_1_Signup",
    opts = pulumi.ResourceOptions(depends_on=[example_application_password]))
Copy
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/apimanagement"
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/core"
	"github.com/pulumi/pulumi-azuread/sdk/v5/go/azuread"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		example, err := core.NewResourceGroup(ctx, "example", &core.ResourceGroupArgs{
			Name:     pulumi.String("example-resources"),
			Location: pulumi.String("West Europe"),
		})
		if err != nil {
			return err
		}
		exampleService, err := apimanagement.NewService(ctx, "example", &apimanagement.ServiceArgs{
			Name:              pulumi.String("example-apim"),
			Location:          example.Location,
			ResourceGroupName: example.Name,
			PublisherName:     pulumi.String("My Company"),
			PublisherEmail:    pulumi.String("company@terraform.io"),
			SkuName:           pulumi.String("Developer_1"),
		})
		if err != nil {
			return err
		}
		exampleApplication, err := azuread.NewApplication(ctx, "example", &azuread.ApplicationArgs{
			DisplayName: pulumi.String("acctestam-example"),
		})
		if err != nil {
			return err
		}
		exampleApplicationPassword, err := azuread.NewApplicationPassword(ctx, "example", &azuread.ApplicationPasswordArgs{
			ApplicationObjectId: exampleApplication.ObjectId,
			EndDateRelative:     pulumi.String("36h"),
		})
		if err != nil {
			return err
		}
		_, err = apimanagement.NewIdentityProviderAadb2c(ctx, "example", &apimanagement.IdentityProviderAadb2cArgs{
			ResourceGroupName: example.Name,
			ApiManagementName: exampleService.Name,
			ClientId:          exampleApplication.ApplicationId,
			ClientSecret:      pulumi.String("P@55w0rD!"),
			AllowedTenant:     pulumi.String("myb2ctenant.onmicrosoft.com"),
			SigninTenant:      pulumi.String("myb2ctenant.onmicrosoft.com"),
			Authority:         pulumi.String("myb2ctenant.b2clogin.com"),
			SigninPolicy:      pulumi.String("B2C_1_Login"),
			SignupPolicy:      pulumi.String("B2C_1_Signup"),
		}, pulumi.DependsOn([]pulumi.Resource{
			exampleApplicationPassword,
		}))
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;
using AzureAD = Pulumi.AzureAD;

return await Deployment.RunAsync(() => 
{
    var example = new Azure.Core.ResourceGroup("example", new()
    {
        Name = "example-resources",
        Location = "West Europe",
    });

    var exampleService = new Azure.ApiManagement.Service("example", new()
    {
        Name = "example-apim",
        Location = example.Location,
        ResourceGroupName = example.Name,
        PublisherName = "My Company",
        PublisherEmail = "company@terraform.io",
        SkuName = "Developer_1",
    });

    var exampleApplication = new AzureAD.Application("example", new()
    {
        DisplayName = "acctestam-example",
    });

    var exampleApplicationPassword = new AzureAD.ApplicationPassword("example", new()
    {
        ApplicationObjectId = exampleApplication.ObjectId,
        EndDateRelative = "36h",
    });

    var exampleIdentityProviderAadb2c = new Azure.ApiManagement.IdentityProviderAadb2c("example", new()
    {
        ResourceGroupName = example.Name,
        ApiManagementName = exampleService.Name,
        ClientId = exampleApplication.ApplicationId,
        ClientSecret = "P@55w0rD!",
        AllowedTenant = "myb2ctenant.onmicrosoft.com",
        SigninTenant = "myb2ctenant.onmicrosoft.com",
        Authority = "myb2ctenant.b2clogin.com",
        SigninPolicy = "B2C_1_Login",
        SignupPolicy = "B2C_1_Signup",
    }, new CustomResourceOptions
    {
        DependsOn =
        {
            exampleApplicationPassword,
        },
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.core.ResourceGroup;
import com.pulumi.azure.core.ResourceGroupArgs;
import com.pulumi.azure.apimanagement.Service;
import com.pulumi.azure.apimanagement.ServiceArgs;
import com.pulumi.azuread.Application;
import com.pulumi.azuread.ApplicationArgs;
import com.pulumi.azuread.ApplicationPassword;
import com.pulumi.azuread.ApplicationPasswordArgs;
import com.pulumi.azure.apimanagement.IdentityProviderAadb2c;
import com.pulumi.azure.apimanagement.IdentityProviderAadb2cArgs;
import com.pulumi.resources.CustomResourceOptions;
import java.util.List;
import java.util.ArrayList;
import java.util.Map;
import java.io.File;
import java.nio.file.Files;
import java.nio.file.Paths;

public class App {
    public static void main(String[] args) {
        Pulumi.run(App::stack);
    }

    public static void stack(Context ctx) {
        var example = new ResourceGroup("example", ResourceGroupArgs.builder()
            .name("example-resources")
            .location("West Europe")
            .build());

        var exampleService = new Service("exampleService", ServiceArgs.builder()
            .name("example-apim")
            .location(example.location())
            .resourceGroupName(example.name())
            .publisherName("My Company")
            .publisherEmail("company@terraform.io")
            .skuName("Developer_1")
            .build());

        var exampleApplication = new Application("exampleApplication", ApplicationArgs.builder()
            .displayName("acctestam-example")
            .build());

        var exampleApplicationPassword = new ApplicationPassword("exampleApplicationPassword", ApplicationPasswordArgs.builder()
            .applicationObjectId(exampleApplication.objectId())
            .endDateRelative("36h")
            .build());

        var exampleIdentityProviderAadb2c = new IdentityProviderAadb2c("exampleIdentityProviderAadb2c", IdentityProviderAadb2cArgs.builder()
            .resourceGroupName(example.name())
            .apiManagementName(exampleService.name())
            .clientId(exampleApplication.applicationId())
            .clientSecret("P@55w0rD!")
            .allowedTenant("myb2ctenant.onmicrosoft.com")
            .signinTenant("myb2ctenant.onmicrosoft.com")
            .authority("myb2ctenant.b2clogin.com")
            .signinPolicy("B2C_1_Login")
            .signupPolicy("B2C_1_Signup")
            .build(), CustomResourceOptions.builder()
                .dependsOn(exampleApplicationPassword)
                .build());

    }
}
Copy
resources:
  example:
    type: azure:core:ResourceGroup
    properties:
      name: example-resources
      location: West Europe
  exampleService:
    type: azure:apimanagement:Service
    name: example
    properties:
      name: example-apim
      location: ${example.location}
      resourceGroupName: ${example.name}
      publisherName: My Company
      publisherEmail: company@terraform.io
      skuName: Developer_1
  exampleApplication:
    type: azuread:Application
    name: example
    properties:
      displayName: acctestam-example
  exampleApplicationPassword:
    type: azuread:ApplicationPassword
    name: example
    properties:
      applicationObjectId: ${exampleApplication.objectId}
      endDateRelative: 36h
  exampleIdentityProviderAadb2c:
    type: azure:apimanagement:IdentityProviderAadb2c
    name: example
    properties:
      resourceGroupName: ${example.name}
      apiManagementName: ${exampleService.name}
      clientId: ${exampleApplication.applicationId}
      clientSecret: P@55w0rD!
      allowedTenant: myb2ctenant.onmicrosoft.com
      signinTenant: myb2ctenant.onmicrosoft.com
      authority: myb2ctenant.b2clogin.com
      signinPolicy: B2C_1_Login
      signupPolicy: B2C_1_Signup
    options:
      dependsOn:
        - ${exampleApplicationPassword}
Copy

Create IdentityProviderAadb2c Resource

Resources are created with functions called constructors. To learn more about declaring and configuring resources, see Resources.

Constructor syntax

new IdentityProviderAadb2c(name: string, args: IdentityProviderAadb2cArgs, opts?: CustomResourceOptions);
@overload
def IdentityProviderAadb2c(resource_name: str,
                           args: IdentityProviderAadb2cArgs,
                           opts: Optional[ResourceOptions] = None)

@overload
def IdentityProviderAadb2c(resource_name: str,
                           opts: Optional[ResourceOptions] = None,
                           allowed_tenant: Optional[str] = None,
                           api_management_name: Optional[str] = None,
                           authority: Optional[str] = None,
                           client_id: Optional[str] = None,
                           client_secret: Optional[str] = None,
                           resource_group_name: Optional[str] = None,
                           signin_policy: Optional[str] = None,
                           signin_tenant: Optional[str] = None,
                           signup_policy: Optional[str] = None,
                           client_library: Optional[str] = None,
                           password_reset_policy: Optional[str] = None,
                           profile_editing_policy: Optional[str] = None)
func NewIdentityProviderAadb2c(ctx *Context, name string, args IdentityProviderAadb2cArgs, opts ...ResourceOption) (*IdentityProviderAadb2c, error)
public IdentityProviderAadb2c(string name, IdentityProviderAadb2cArgs args, CustomResourceOptions? opts = null)
public IdentityProviderAadb2c(String name, IdentityProviderAadb2cArgs args)
public IdentityProviderAadb2c(String name, IdentityProviderAadb2cArgs args, CustomResourceOptions options)
type: azure:apimanagement:IdentityProviderAadb2c
properties: # The arguments to resource properties.
options: # Bag of options to control resource's behavior.

Parameters

name This property is required. string
The unique name of the resource.
args This property is required. IdentityProviderAadb2cArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
resource_name This property is required. str
The unique name of the resource.
args This property is required. IdentityProviderAadb2cArgs
The arguments to resource properties.
opts ResourceOptions
Bag of options to control resource's behavior.
ctx Context
Context object for the current deployment.
name This property is required. string
The unique name of the resource.
args This property is required. IdentityProviderAadb2cArgs
The arguments to resource properties.
opts ResourceOption
Bag of options to control resource's behavior.
name This property is required. string
The unique name of the resource.
args This property is required. IdentityProviderAadb2cArgs
The arguments to resource properties.
opts CustomResourceOptions
Bag of options to control resource's behavior.
name This property is required. String
The unique name of the resource.
args This property is required. IdentityProviderAadb2cArgs
The arguments to resource properties.
options CustomResourceOptions
Bag of options to control resource's behavior.

Constructor example

The following reference example uses placeholder values for all input properties.

var identityProviderAadb2cResource = new Azure.ApiManagement.IdentityProviderAadb2c("identityProviderAadb2cResource", new()
{
    AllowedTenant = "string",
    ApiManagementName = "string",
    Authority = "string",
    ClientId = "string",
    ClientSecret = "string",
    ResourceGroupName = "string",
    SigninPolicy = "string",
    SigninTenant = "string",
    SignupPolicy = "string",
    ClientLibrary = "string",
    PasswordResetPolicy = "string",
    ProfileEditingPolicy = "string",
});
Copy
example, err := apimanagement.NewIdentityProviderAadb2c(ctx, "identityProviderAadb2cResource", &apimanagement.IdentityProviderAadb2cArgs{
	AllowedTenant:        pulumi.String("string"),
	ApiManagementName:    pulumi.String("string"),
	Authority:            pulumi.String("string"),
	ClientId:             pulumi.String("string"),
	ClientSecret:         pulumi.String("string"),
	ResourceGroupName:    pulumi.String("string"),
	SigninPolicy:         pulumi.String("string"),
	SigninTenant:         pulumi.String("string"),
	SignupPolicy:         pulumi.String("string"),
	ClientLibrary:        pulumi.String("string"),
	PasswordResetPolicy:  pulumi.String("string"),
	ProfileEditingPolicy: pulumi.String("string"),
})
Copy
var identityProviderAadb2cResource = new IdentityProviderAadb2c("identityProviderAadb2cResource", IdentityProviderAadb2cArgs.builder()
    .allowedTenant("string")
    .apiManagementName("string")
    .authority("string")
    .clientId("string")
    .clientSecret("string")
    .resourceGroupName("string")
    .signinPolicy("string")
    .signinTenant("string")
    .signupPolicy("string")
    .clientLibrary("string")
    .passwordResetPolicy("string")
    .profileEditingPolicy("string")
    .build());
Copy
identity_provider_aadb2c_resource = azure.apimanagement.IdentityProviderAadb2c("identityProviderAadb2cResource",
    allowed_tenant="string",
    api_management_name="string",
    authority="string",
    client_id="string",
    client_secret="string",
    resource_group_name="string",
    signin_policy="string",
    signin_tenant="string",
    signup_policy="string",
    client_library="string",
    password_reset_policy="string",
    profile_editing_policy="string")
Copy
const identityProviderAadb2cResource = new azure.apimanagement.IdentityProviderAadb2c("identityProviderAadb2cResource", {
    allowedTenant: "string",
    apiManagementName: "string",
    authority: "string",
    clientId: "string",
    clientSecret: "string",
    resourceGroupName: "string",
    signinPolicy: "string",
    signinTenant: "string",
    signupPolicy: "string",
    clientLibrary: "string",
    passwordResetPolicy: "string",
    profileEditingPolicy: "string",
});
Copy
type: azure:apimanagement:IdentityProviderAadb2c
properties:
    allowedTenant: string
    apiManagementName: string
    authority: string
    clientId: string
    clientLibrary: string
    clientSecret: string
    passwordResetPolicy: string
    profileEditingPolicy: string
    resourceGroupName: string
    signinPolicy: string
    signinTenant: string
    signupPolicy: string
Copy

IdentityProviderAadb2c Resource Properties

To learn more about resource properties and how to use them, see Inputs and Outputs in the Architecture and Concepts docs.

Inputs

In Python, inputs that are objects can be passed either as argument classes or as dictionary literals.

The IdentityProviderAadb2c resource accepts the following input properties:

AllowedTenant This property is required. string
The allowed AAD tenant, usually your B2C tenant domain.
ApiManagementName
This property is required.
Changes to this property will trigger replacement.
string
The Name of the API Management Service where this AAD Identity Provider should be created. Changing this forces a new resource to be created.
Authority This property is required. string
OpenID Connect discovery endpoint hostname, usually your b2clogin.com domain.
ClientId This property is required. string
Client ID of the Application in your B2C tenant.
ClientSecret This property is required. string
Client secret of the Application in your B2C tenant.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created.
SigninPolicy This property is required. string
Signin Policy Name.
SigninTenant This property is required. string
The tenant to use instead of Common when logging into Active Directory, usually your B2C tenant domain.
SignupPolicy This property is required. string
Signup Policy Name.
ClientLibrary string
The client library to be used in the Azure AD B2C Identity Provider.
PasswordResetPolicy string
Password reset Policy Name.
ProfileEditingPolicy string
Profile editing Policy Name.
AllowedTenant This property is required. string
The allowed AAD tenant, usually your B2C tenant domain.
ApiManagementName
This property is required.
Changes to this property will trigger replacement.
string
The Name of the API Management Service where this AAD Identity Provider should be created. Changing this forces a new resource to be created.
Authority This property is required. string
OpenID Connect discovery endpoint hostname, usually your b2clogin.com domain.
ClientId This property is required. string
Client ID of the Application in your B2C tenant.
ClientSecret This property is required. string
Client secret of the Application in your B2C tenant.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created.
SigninPolicy This property is required. string
Signin Policy Name.
SigninTenant This property is required. string
The tenant to use instead of Common when logging into Active Directory, usually your B2C tenant domain.
SignupPolicy This property is required. string
Signup Policy Name.
ClientLibrary string
The client library to be used in the Azure AD B2C Identity Provider.
PasswordResetPolicy string
Password reset Policy Name.
ProfileEditingPolicy string
Profile editing Policy Name.
allowedTenant This property is required. String
The allowed AAD tenant, usually your B2C tenant domain.
apiManagementName
This property is required.
Changes to this property will trigger replacement.
String
The Name of the API Management Service where this AAD Identity Provider should be created. Changing this forces a new resource to be created.
authority This property is required. String
OpenID Connect discovery endpoint hostname, usually your b2clogin.com domain.
clientId This property is required. String
Client ID of the Application in your B2C tenant.
clientSecret This property is required. String
Client secret of the Application in your B2C tenant.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created.
signinPolicy This property is required. String
Signin Policy Name.
signinTenant This property is required. String
The tenant to use instead of Common when logging into Active Directory, usually your B2C tenant domain.
signupPolicy This property is required. String
Signup Policy Name.
clientLibrary String
The client library to be used in the Azure AD B2C Identity Provider.
passwordResetPolicy String
Password reset Policy Name.
profileEditingPolicy String
Profile editing Policy Name.
allowedTenant This property is required. string
The allowed AAD tenant, usually your B2C tenant domain.
apiManagementName
This property is required.
Changes to this property will trigger replacement.
string
The Name of the API Management Service where this AAD Identity Provider should be created. Changing this forces a new resource to be created.
authority This property is required. string
OpenID Connect discovery endpoint hostname, usually your b2clogin.com domain.
clientId This property is required. string
Client ID of the Application in your B2C tenant.
clientSecret This property is required. string
Client secret of the Application in your B2C tenant.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created.
signinPolicy This property is required. string
Signin Policy Name.
signinTenant This property is required. string
The tenant to use instead of Common when logging into Active Directory, usually your B2C tenant domain.
signupPolicy This property is required. string
Signup Policy Name.
clientLibrary string
The client library to be used in the Azure AD B2C Identity Provider.
passwordResetPolicy string
Password reset Policy Name.
profileEditingPolicy string
Profile editing Policy Name.
allowed_tenant This property is required. str
The allowed AAD tenant, usually your B2C tenant domain.
api_management_name
This property is required.
Changes to this property will trigger replacement.
str
The Name of the API Management Service where this AAD Identity Provider should be created. Changing this forces a new resource to be created.
authority This property is required. str
OpenID Connect discovery endpoint hostname, usually your b2clogin.com domain.
client_id This property is required. str
Client ID of the Application in your B2C tenant.
client_secret This property is required. str
Client secret of the Application in your B2C tenant.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created.
signin_policy This property is required. str
Signin Policy Name.
signin_tenant This property is required. str
The tenant to use instead of Common when logging into Active Directory, usually your B2C tenant domain.
signup_policy This property is required. str
Signup Policy Name.
client_library str
The client library to be used in the Azure AD B2C Identity Provider.
password_reset_policy str
Password reset Policy Name.
profile_editing_policy str
Profile editing Policy Name.
allowedTenant This property is required. String
The allowed AAD tenant, usually your B2C tenant domain.
apiManagementName
This property is required.
Changes to this property will trigger replacement.
String
The Name of the API Management Service where this AAD Identity Provider should be created. Changing this forces a new resource to be created.
authority This property is required. String
OpenID Connect discovery endpoint hostname, usually your b2clogin.com domain.
clientId This property is required. String
Client ID of the Application in your B2C tenant.
clientSecret This property is required. String
Client secret of the Application in your B2C tenant.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created.
signinPolicy This property is required. String
Signin Policy Name.
signinTenant This property is required. String
The tenant to use instead of Common when logging into Active Directory, usually your B2C tenant domain.
signupPolicy This property is required. String
Signup Policy Name.
clientLibrary String
The client library to be used in the Azure AD B2C Identity Provider.
passwordResetPolicy String
Password reset Policy Name.
profileEditingPolicy String
Profile editing Policy Name.

Outputs

All input properties are implicitly available as output properties. Additionally, the IdentityProviderAadb2c resource produces the following output properties:

Id string
The provider-assigned unique ID for this managed resource.
Id string
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.
id string
The provider-assigned unique ID for this managed resource.
id str
The provider-assigned unique ID for this managed resource.
id String
The provider-assigned unique ID for this managed resource.

Look up Existing IdentityProviderAadb2c Resource

Get an existing IdentityProviderAadb2c resource’s state with the given name, ID, and optional extra properties used to qualify the lookup.

public static get(name: string, id: Input<ID>, state?: IdentityProviderAadb2cState, opts?: CustomResourceOptions): IdentityProviderAadb2c
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        allowed_tenant: Optional[str] = None,
        api_management_name: Optional[str] = None,
        authority: Optional[str] = None,
        client_id: Optional[str] = None,
        client_library: Optional[str] = None,
        client_secret: Optional[str] = None,
        password_reset_policy: Optional[str] = None,
        profile_editing_policy: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        signin_policy: Optional[str] = None,
        signin_tenant: Optional[str] = None,
        signup_policy: Optional[str] = None) -> IdentityProviderAadb2c
func GetIdentityProviderAadb2c(ctx *Context, name string, id IDInput, state *IdentityProviderAadb2cState, opts ...ResourceOption) (*IdentityProviderAadb2c, error)
public static IdentityProviderAadb2c Get(string name, Input<string> id, IdentityProviderAadb2cState? state, CustomResourceOptions? opts = null)
public static IdentityProviderAadb2c get(String name, Output<String> id, IdentityProviderAadb2cState state, CustomResourceOptions options)
resources:  _:    type: azure:apimanagement:IdentityProviderAadb2c    get:      id: ${id}
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
resource_name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
name This property is required.
The unique name of the resulting resource.
id This property is required.
The unique provider ID of the resource to lookup.
state
Any extra arguments used during the lookup.
opts
A bag of options that control this resource's behavior.
The following state arguments are supported:
AllowedTenant string
The allowed AAD tenant, usually your B2C tenant domain.
ApiManagementName Changes to this property will trigger replacement. string
The Name of the API Management Service where this AAD Identity Provider should be created. Changing this forces a new resource to be created.
Authority string
OpenID Connect discovery endpoint hostname, usually your b2clogin.com domain.
ClientId string
Client ID of the Application in your B2C tenant.
ClientLibrary string
The client library to be used in the Azure AD B2C Identity Provider.
ClientSecret string
Client secret of the Application in your B2C tenant.
PasswordResetPolicy string
Password reset Policy Name.
ProfileEditingPolicy string
Profile editing Policy Name.
ResourceGroupName Changes to this property will trigger replacement. string
The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created.
SigninPolicy string
Signin Policy Name.
SigninTenant string
The tenant to use instead of Common when logging into Active Directory, usually your B2C tenant domain.
SignupPolicy string
Signup Policy Name.
AllowedTenant string
The allowed AAD tenant, usually your B2C tenant domain.
ApiManagementName Changes to this property will trigger replacement. string
The Name of the API Management Service where this AAD Identity Provider should be created. Changing this forces a new resource to be created.
Authority string
OpenID Connect discovery endpoint hostname, usually your b2clogin.com domain.
ClientId string
Client ID of the Application in your B2C tenant.
ClientLibrary string
The client library to be used in the Azure AD B2C Identity Provider.
ClientSecret string
Client secret of the Application in your B2C tenant.
PasswordResetPolicy string
Password reset Policy Name.
ProfileEditingPolicy string
Profile editing Policy Name.
ResourceGroupName Changes to this property will trigger replacement. string
The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created.
SigninPolicy string
Signin Policy Name.
SigninTenant string
The tenant to use instead of Common when logging into Active Directory, usually your B2C tenant domain.
SignupPolicy string
Signup Policy Name.
allowedTenant String
The allowed AAD tenant, usually your B2C tenant domain.
apiManagementName Changes to this property will trigger replacement. String
The Name of the API Management Service where this AAD Identity Provider should be created. Changing this forces a new resource to be created.
authority String
OpenID Connect discovery endpoint hostname, usually your b2clogin.com domain.
clientId String
Client ID of the Application in your B2C tenant.
clientLibrary String
The client library to be used in the Azure AD B2C Identity Provider.
clientSecret String
Client secret of the Application in your B2C tenant.
passwordResetPolicy String
Password reset Policy Name.
profileEditingPolicy String
Profile editing Policy Name.
resourceGroupName Changes to this property will trigger replacement. String
The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created.
signinPolicy String
Signin Policy Name.
signinTenant String
The tenant to use instead of Common when logging into Active Directory, usually your B2C tenant domain.
signupPolicy String
Signup Policy Name.
allowedTenant string
The allowed AAD tenant, usually your B2C tenant domain.
apiManagementName Changes to this property will trigger replacement. string
The Name of the API Management Service where this AAD Identity Provider should be created. Changing this forces a new resource to be created.
authority string
OpenID Connect discovery endpoint hostname, usually your b2clogin.com domain.
clientId string
Client ID of the Application in your B2C tenant.
clientLibrary string
The client library to be used in the Azure AD B2C Identity Provider.
clientSecret string
Client secret of the Application in your B2C tenant.
passwordResetPolicy string
Password reset Policy Name.
profileEditingPolicy string
Profile editing Policy Name.
resourceGroupName Changes to this property will trigger replacement. string
The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created.
signinPolicy string
Signin Policy Name.
signinTenant string
The tenant to use instead of Common when logging into Active Directory, usually your B2C tenant domain.
signupPolicy string
Signup Policy Name.
allowed_tenant str
The allowed AAD tenant, usually your B2C tenant domain.
api_management_name Changes to this property will trigger replacement. str
The Name of the API Management Service where this AAD Identity Provider should be created. Changing this forces a new resource to be created.
authority str
OpenID Connect discovery endpoint hostname, usually your b2clogin.com domain.
client_id str
Client ID of the Application in your B2C tenant.
client_library str
The client library to be used in the Azure AD B2C Identity Provider.
client_secret str
Client secret of the Application in your B2C tenant.
password_reset_policy str
Password reset Policy Name.
profile_editing_policy str
Profile editing Policy Name.
resource_group_name Changes to this property will trigger replacement. str
The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created.
signin_policy str
Signin Policy Name.
signin_tenant str
The tenant to use instead of Common when logging into Active Directory, usually your B2C tenant domain.
signup_policy str
Signup Policy Name.
allowedTenant String
The allowed AAD tenant, usually your B2C tenant domain.
apiManagementName Changes to this property will trigger replacement. String
The Name of the API Management Service where this AAD Identity Provider should be created. Changing this forces a new resource to be created.
authority String
OpenID Connect discovery endpoint hostname, usually your b2clogin.com domain.
clientId String
Client ID of the Application in your B2C tenant.
clientLibrary String
The client library to be used in the Azure AD B2C Identity Provider.
clientSecret String
Client secret of the Application in your B2C tenant.
passwordResetPolicy String
Password reset Policy Name.
profileEditingPolicy String
Profile editing Policy Name.
resourceGroupName Changes to this property will trigger replacement. String
The Name of the Resource Group where the API Management Service exists. Changing this forces a new resource to be created.
signinPolicy String
Signin Policy Name.
signinTenant String
The tenant to use instead of Common when logging into Active Directory, usually your B2C tenant domain.
signupPolicy String
Signup Policy Name.

Import

API Management Azure AD B2C Identity Providers can be imported using the resource id, e.g.

$ pulumi import azure:apimanagement/identityProviderAadb2c:IdentityProviderAadb2c example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/mygroup1/providers/Microsoft.ApiManagement/service/service1/identityProviders/aadB2C
Copy

To learn more about importing existing cloud resources, see Importing resources.

Package Details

Repository
Azure Classic pulumi/pulumi-azure
License
Apache-2.0
Notes
This Pulumi package is based on the azurerm Terraform Provider.