1. Packages
  2. Azure Classic
  3. API Docs
  4. aadb2c
  5. Directory

We recommend using Azure Native.

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

azure.aadb2c.Directory

Explore with Pulumi AI

Manages an AAD B2C Directory.

Example Usage

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

const example = new azure.aadb2c.Directory("example", {
    countryCode: "US",
    dataResidencyLocation: "United States",
    displayName: "example-b2c-tenant",
    domainName: "exampleb2ctenant.onmicrosoft.com",
    resourceGroupName: "example-rg",
    skuName: "PremiumP1",
});
Copy
import pulumi
import pulumi_azure as azure

example = azure.aadb2c.Directory("example",
    country_code="US",
    data_residency_location="United States",
    display_name="example-b2c-tenant",
    domain_name="exampleb2ctenant.onmicrosoft.com",
    resource_group_name="example-rg",
    sku_name="PremiumP1")
Copy
package main

import (
	"github.com/pulumi/pulumi-azure/sdk/v6/go/azure/aadb2c"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)

func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := aadb2c.NewDirectory(ctx, "example", &aadb2c.DirectoryArgs{
			CountryCode:           pulumi.String("US"),
			DataResidencyLocation: pulumi.String("United States"),
			DisplayName:           pulumi.String("example-b2c-tenant"),
			DomainName:            pulumi.String("exampleb2ctenant.onmicrosoft.com"),
			ResourceGroupName:     pulumi.String("example-rg"),
			SkuName:               pulumi.String("PremiumP1"),
		})
		if err != nil {
			return err
		}
		return nil
	})
}
Copy
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using Azure = Pulumi.Azure;

return await Deployment.RunAsync(() => 
{
    var example = new Azure.AadB2C.Directory("example", new()
    {
        CountryCode = "US",
        DataResidencyLocation = "United States",
        DisplayName = "example-b2c-tenant",
        DomainName = "exampleb2ctenant.onmicrosoft.com",
        ResourceGroupName = "example-rg",
        SkuName = "PremiumP1",
    });

});
Copy
package generated_program;

import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azure.aadb2c.Directory;
import com.pulumi.azure.aadb2c.DirectoryArgs;
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 Directory("example", DirectoryArgs.builder()
            .countryCode("US")
            .dataResidencyLocation("United States")
            .displayName("example-b2c-tenant")
            .domainName("exampleb2ctenant.onmicrosoft.com")
            .resourceGroupName("example-rg")
            .skuName("PremiumP1")
            .build());

    }
}
Copy
resources:
  example:
    type: azure:aadb2c:Directory
    properties:
      countryCode: US
      dataResidencyLocation: United States
      displayName: example-b2c-tenant
      domainName: exampleb2ctenant.onmicrosoft.com
      resourceGroupName: example-rg
      skuName: PremiumP1
Copy

Create Directory Resource

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

Constructor syntax

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

@overload
def Directory(resource_name: str,
              opts: Optional[ResourceOptions] = None,
              data_residency_location: Optional[str] = None,
              domain_name: Optional[str] = None,
              resource_group_name: Optional[str] = None,
              sku_name: Optional[str] = None,
              country_code: Optional[str] = None,
              display_name: Optional[str] = None,
              tags: Optional[Mapping[str, str]] = None)
func NewDirectory(ctx *Context, name string, args DirectoryArgs, opts ...ResourceOption) (*Directory, error)
public Directory(string name, DirectoryArgs args, CustomResourceOptions? opts = null)
public Directory(String name, DirectoryArgs args)
public Directory(String name, DirectoryArgs args, CustomResourceOptions options)
type: azure:aadb2c:Directory
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. DirectoryArgs
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. DirectoryArgs
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. DirectoryArgs
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. DirectoryArgs
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. DirectoryArgs
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 directoryResource = new Azure.AadB2C.Directory("directoryResource", new()
{
    DataResidencyLocation = "string",
    DomainName = "string",
    ResourceGroupName = "string",
    SkuName = "string",
    CountryCode = "string",
    DisplayName = "string",
    Tags = 
    {
        { "string", "string" },
    },
});
Copy
example, err := aadb2c.NewDirectory(ctx, "directoryResource", &aadb2c.DirectoryArgs{
	DataResidencyLocation: pulumi.String("string"),
	DomainName:            pulumi.String("string"),
	ResourceGroupName:     pulumi.String("string"),
	SkuName:               pulumi.String("string"),
	CountryCode:           pulumi.String("string"),
	DisplayName:           pulumi.String("string"),
	Tags: pulumi.StringMap{
		"string": pulumi.String("string"),
	},
})
Copy
var directoryResource = new Directory("directoryResource", DirectoryArgs.builder()
    .dataResidencyLocation("string")
    .domainName("string")
    .resourceGroupName("string")
    .skuName("string")
    .countryCode("string")
    .displayName("string")
    .tags(Map.of("string", "string"))
    .build());
Copy
directory_resource = azure.aadb2c.Directory("directoryResource",
    data_residency_location="string",
    domain_name="string",
    resource_group_name="string",
    sku_name="string",
    country_code="string",
    display_name="string",
    tags={
        "string": "string",
    })
Copy
const directoryResource = new azure.aadb2c.Directory("directoryResource", {
    dataResidencyLocation: "string",
    domainName: "string",
    resourceGroupName: "string",
    skuName: "string",
    countryCode: "string",
    displayName: "string",
    tags: {
        string: "string",
    },
});
Copy
type: azure:aadb2c:Directory
properties:
    countryCode: string
    dataResidencyLocation: string
    displayName: string
    domainName: string
    resourceGroupName: string
    skuName: string
    tags:
        string: string
Copy

Directory 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 Directory resource accepts the following input properties:

DataResidencyLocation
This property is required.
Changes to this property will trigger replacement.
string
Location in which the B2C tenant is hosted and data resides. The data_residency_location should be valid for the specified country_code. See official docs for more information. Changing this forces a new AAD B2C Directory to be created. Possible values are Asia Pacific, Australia, Europe, Global and United States.
DomainName
This property is required.
Changes to this property will trigger replacement.
string
Domain name of the B2C tenant, including the .onmicrosoft.com suffix. Changing this forces a new AAD B2C Directory to be created.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Resource Group where the AAD B2C Directory should exist. Changing this forces a new AAD B2C Directory to be created.
SkuName This property is required. string
Billing SKU for the B2C tenant. Must be one of: PremiumP1 or PremiumP2 (Standard is not supported). See official docs for more information.
CountryCode Changes to this property will trigger replacement. string
Country code of the B2C tenant. The country_code should be valid for the specified data_residency_location. See official docs for valid country codes. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
DisplayName Changes to this property will trigger replacement. string
The initial display name of the B2C tenant. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
Tags Dictionary<string, string>
A mapping of tags which should be assigned to the AAD B2C Directory.
DataResidencyLocation
This property is required.
Changes to this property will trigger replacement.
string
Location in which the B2C tenant is hosted and data resides. The data_residency_location should be valid for the specified country_code. See official docs for more information. Changing this forces a new AAD B2C Directory to be created. Possible values are Asia Pacific, Australia, Europe, Global and United States.
DomainName
This property is required.
Changes to this property will trigger replacement.
string
Domain name of the B2C tenant, including the .onmicrosoft.com suffix. Changing this forces a new AAD B2C Directory to be created.
ResourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Resource Group where the AAD B2C Directory should exist. Changing this forces a new AAD B2C Directory to be created.
SkuName This property is required. string
Billing SKU for the B2C tenant. Must be one of: PremiumP1 or PremiumP2 (Standard is not supported). See official docs for more information.
CountryCode Changes to this property will trigger replacement. string
Country code of the B2C tenant. The country_code should be valid for the specified data_residency_location. See official docs for valid country codes. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
DisplayName Changes to this property will trigger replacement. string
The initial display name of the B2C tenant. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
Tags map[string]string
A mapping of tags which should be assigned to the AAD B2C Directory.
dataResidencyLocation
This property is required.
Changes to this property will trigger replacement.
String
Location in which the B2C tenant is hosted and data resides. The data_residency_location should be valid for the specified country_code. See official docs for more information. Changing this forces a new AAD B2C Directory to be created. Possible values are Asia Pacific, Australia, Europe, Global and United States.
domainName
This property is required.
Changes to this property will trigger replacement.
String
Domain name of the B2C tenant, including the .onmicrosoft.com suffix. Changing this forces a new AAD B2C Directory to be created.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Resource Group where the AAD B2C Directory should exist. Changing this forces a new AAD B2C Directory to be created.
skuName This property is required. String
Billing SKU for the B2C tenant. Must be one of: PremiumP1 or PremiumP2 (Standard is not supported). See official docs for more information.
countryCode Changes to this property will trigger replacement. String
Country code of the B2C tenant. The country_code should be valid for the specified data_residency_location. See official docs for valid country codes. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
displayName Changes to this property will trigger replacement. String
The initial display name of the B2C tenant. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
tags Map<String,String>
A mapping of tags which should be assigned to the AAD B2C Directory.
dataResidencyLocation
This property is required.
Changes to this property will trigger replacement.
string
Location in which the B2C tenant is hosted and data resides. The data_residency_location should be valid for the specified country_code. See official docs for more information. Changing this forces a new AAD B2C Directory to be created. Possible values are Asia Pacific, Australia, Europe, Global and United States.
domainName
This property is required.
Changes to this property will trigger replacement.
string
Domain name of the B2C tenant, including the .onmicrosoft.com suffix. Changing this forces a new AAD B2C Directory to be created.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
string
The name of the Resource Group where the AAD B2C Directory should exist. Changing this forces a new AAD B2C Directory to be created.
skuName This property is required. string
Billing SKU for the B2C tenant. Must be one of: PremiumP1 or PremiumP2 (Standard is not supported). See official docs for more information.
countryCode Changes to this property will trigger replacement. string
Country code of the B2C tenant. The country_code should be valid for the specified data_residency_location. See official docs for valid country codes. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
displayName Changes to this property will trigger replacement. string
The initial display name of the B2C tenant. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
tags {[key: string]: string}
A mapping of tags which should be assigned to the AAD B2C Directory.
data_residency_location
This property is required.
Changes to this property will trigger replacement.
str
Location in which the B2C tenant is hosted and data resides. The data_residency_location should be valid for the specified country_code. See official docs for more information. Changing this forces a new AAD B2C Directory to be created. Possible values are Asia Pacific, Australia, Europe, Global and United States.
domain_name
This property is required.
Changes to this property will trigger replacement.
str
Domain name of the B2C tenant, including the .onmicrosoft.com suffix. Changing this forces a new AAD B2C Directory to be created.
resource_group_name
This property is required.
Changes to this property will trigger replacement.
str
The name of the Resource Group where the AAD B2C Directory should exist. Changing this forces a new AAD B2C Directory to be created.
sku_name This property is required. str
Billing SKU for the B2C tenant. Must be one of: PremiumP1 or PremiumP2 (Standard is not supported). See official docs for more information.
country_code Changes to this property will trigger replacement. str
Country code of the B2C tenant. The country_code should be valid for the specified data_residency_location. See official docs for valid country codes. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
display_name Changes to this property will trigger replacement. str
The initial display name of the B2C tenant. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
tags Mapping[str, str]
A mapping of tags which should be assigned to the AAD B2C Directory.
dataResidencyLocation
This property is required.
Changes to this property will trigger replacement.
String
Location in which the B2C tenant is hosted and data resides. The data_residency_location should be valid for the specified country_code. See official docs for more information. Changing this forces a new AAD B2C Directory to be created. Possible values are Asia Pacific, Australia, Europe, Global and United States.
domainName
This property is required.
Changes to this property will trigger replacement.
String
Domain name of the B2C tenant, including the .onmicrosoft.com suffix. Changing this forces a new AAD B2C Directory to be created.
resourceGroupName
This property is required.
Changes to this property will trigger replacement.
String
The name of the Resource Group where the AAD B2C Directory should exist. Changing this forces a new AAD B2C Directory to be created.
skuName This property is required. String
Billing SKU for the B2C tenant. Must be one of: PremiumP1 or PremiumP2 (Standard is not supported). See official docs for more information.
countryCode Changes to this property will trigger replacement. String
Country code of the B2C tenant. The country_code should be valid for the specified data_residency_location. See official docs for valid country codes. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
displayName Changes to this property will trigger replacement. String
The initial display name of the B2C tenant. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
tags Map<String>
A mapping of tags which should be assigned to the AAD B2C Directory.

Outputs

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

BillingType string
The type of billing for the AAD B2C tenant. Possible values include: MAU or Auths.
EffectiveStartDate string
The date from which the billing type took effect. May not be populated until after the first billing cycle.
Id string
The provider-assigned unique ID for this managed resource.
TenantId string
The Tenant ID for the AAD B2C tenant.
BillingType string
The type of billing for the AAD B2C tenant. Possible values include: MAU or Auths.
EffectiveStartDate string
The date from which the billing type took effect. May not be populated until after the first billing cycle.
Id string
The provider-assigned unique ID for this managed resource.
TenantId string
The Tenant ID for the AAD B2C tenant.
billingType String
The type of billing for the AAD B2C tenant. Possible values include: MAU or Auths.
effectiveStartDate String
The date from which the billing type took effect. May not be populated until after the first billing cycle.
id String
The provider-assigned unique ID for this managed resource.
tenantId String
The Tenant ID for the AAD B2C tenant.
billingType string
The type of billing for the AAD B2C tenant. Possible values include: MAU or Auths.
effectiveStartDate string
The date from which the billing type took effect. May not be populated until after the first billing cycle.
id string
The provider-assigned unique ID for this managed resource.
tenantId string
The Tenant ID for the AAD B2C tenant.
billing_type str
The type of billing for the AAD B2C tenant. Possible values include: MAU or Auths.
effective_start_date str
The date from which the billing type took effect. May not be populated until after the first billing cycle.
id str
The provider-assigned unique ID for this managed resource.
tenant_id str
The Tenant ID for the AAD B2C tenant.
billingType String
The type of billing for the AAD B2C tenant. Possible values include: MAU or Auths.
effectiveStartDate String
The date from which the billing type took effect. May not be populated until after the first billing cycle.
id String
The provider-assigned unique ID for this managed resource.
tenantId String
The Tenant ID for the AAD B2C tenant.

Look up Existing Directory Resource

Get an existing Directory 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?: DirectoryState, opts?: CustomResourceOptions): Directory
@staticmethod
def get(resource_name: str,
        id: str,
        opts: Optional[ResourceOptions] = None,
        billing_type: Optional[str] = None,
        country_code: Optional[str] = None,
        data_residency_location: Optional[str] = None,
        display_name: Optional[str] = None,
        domain_name: Optional[str] = None,
        effective_start_date: Optional[str] = None,
        resource_group_name: Optional[str] = None,
        sku_name: Optional[str] = None,
        tags: Optional[Mapping[str, str]] = None,
        tenant_id: Optional[str] = None) -> Directory
func GetDirectory(ctx *Context, name string, id IDInput, state *DirectoryState, opts ...ResourceOption) (*Directory, error)
public static Directory Get(string name, Input<string> id, DirectoryState? state, CustomResourceOptions? opts = null)
public static Directory get(String name, Output<String> id, DirectoryState state, CustomResourceOptions options)
resources:  _:    type: azure:aadb2c:Directory    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:
BillingType string
The type of billing for the AAD B2C tenant. Possible values include: MAU or Auths.
CountryCode Changes to this property will trigger replacement. string
Country code of the B2C tenant. The country_code should be valid for the specified data_residency_location. See official docs for valid country codes. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
DataResidencyLocation Changes to this property will trigger replacement. string
Location in which the B2C tenant is hosted and data resides. The data_residency_location should be valid for the specified country_code. See official docs for more information. Changing this forces a new AAD B2C Directory to be created. Possible values are Asia Pacific, Australia, Europe, Global and United States.
DisplayName Changes to this property will trigger replacement. string
The initial display name of the B2C tenant. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
DomainName Changes to this property will trigger replacement. string
Domain name of the B2C tenant, including the .onmicrosoft.com suffix. Changing this forces a new AAD B2C Directory to be created.
EffectiveStartDate string
The date from which the billing type took effect. May not be populated until after the first billing cycle.
ResourceGroupName Changes to this property will trigger replacement. string
The name of the Resource Group where the AAD B2C Directory should exist. Changing this forces a new AAD B2C Directory to be created.
SkuName string
Billing SKU for the B2C tenant. Must be one of: PremiumP1 or PremiumP2 (Standard is not supported). See official docs for more information.
Tags Dictionary<string, string>
A mapping of tags which should be assigned to the AAD B2C Directory.
TenantId string
The Tenant ID for the AAD B2C tenant.
BillingType string
The type of billing for the AAD B2C tenant. Possible values include: MAU or Auths.
CountryCode Changes to this property will trigger replacement. string
Country code of the B2C tenant. The country_code should be valid for the specified data_residency_location. See official docs for valid country codes. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
DataResidencyLocation Changes to this property will trigger replacement. string
Location in which the B2C tenant is hosted and data resides. The data_residency_location should be valid for the specified country_code. See official docs for more information. Changing this forces a new AAD B2C Directory to be created. Possible values are Asia Pacific, Australia, Europe, Global and United States.
DisplayName Changes to this property will trigger replacement. string
The initial display name of the B2C tenant. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
DomainName Changes to this property will trigger replacement. string
Domain name of the B2C tenant, including the .onmicrosoft.com suffix. Changing this forces a new AAD B2C Directory to be created.
EffectiveStartDate string
The date from which the billing type took effect. May not be populated until after the first billing cycle.
ResourceGroupName Changes to this property will trigger replacement. string
The name of the Resource Group where the AAD B2C Directory should exist. Changing this forces a new AAD B2C Directory to be created.
SkuName string
Billing SKU for the B2C tenant. Must be one of: PremiumP1 or PremiumP2 (Standard is not supported). See official docs for more information.
Tags map[string]string
A mapping of tags which should be assigned to the AAD B2C Directory.
TenantId string
The Tenant ID for the AAD B2C tenant.
billingType String
The type of billing for the AAD B2C tenant. Possible values include: MAU or Auths.
countryCode Changes to this property will trigger replacement. String
Country code of the B2C tenant. The country_code should be valid for the specified data_residency_location. See official docs for valid country codes. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
dataResidencyLocation Changes to this property will trigger replacement. String
Location in which the B2C tenant is hosted and data resides. The data_residency_location should be valid for the specified country_code. See official docs for more information. Changing this forces a new AAD B2C Directory to be created. Possible values are Asia Pacific, Australia, Europe, Global and United States.
displayName Changes to this property will trigger replacement. String
The initial display name of the B2C tenant. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
domainName Changes to this property will trigger replacement. String
Domain name of the B2C tenant, including the .onmicrosoft.com suffix. Changing this forces a new AAD B2C Directory to be created.
effectiveStartDate String
The date from which the billing type took effect. May not be populated until after the first billing cycle.
resourceGroupName Changes to this property will trigger replacement. String
The name of the Resource Group where the AAD B2C Directory should exist. Changing this forces a new AAD B2C Directory to be created.
skuName String
Billing SKU for the B2C tenant. Must be one of: PremiumP1 or PremiumP2 (Standard is not supported). See official docs for more information.
tags Map<String,String>
A mapping of tags which should be assigned to the AAD B2C Directory.
tenantId String
The Tenant ID for the AAD B2C tenant.
billingType string
The type of billing for the AAD B2C tenant. Possible values include: MAU or Auths.
countryCode Changes to this property will trigger replacement. string
Country code of the B2C tenant. The country_code should be valid for the specified data_residency_location. See official docs for valid country codes. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
dataResidencyLocation Changes to this property will trigger replacement. string
Location in which the B2C tenant is hosted and data resides. The data_residency_location should be valid for the specified country_code. See official docs for more information. Changing this forces a new AAD B2C Directory to be created. Possible values are Asia Pacific, Australia, Europe, Global and United States.
displayName Changes to this property will trigger replacement. string
The initial display name of the B2C tenant. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
domainName Changes to this property will trigger replacement. string
Domain name of the B2C tenant, including the .onmicrosoft.com suffix. Changing this forces a new AAD B2C Directory to be created.
effectiveStartDate string
The date from which the billing type took effect. May not be populated until after the first billing cycle.
resourceGroupName Changes to this property will trigger replacement. string
The name of the Resource Group where the AAD B2C Directory should exist. Changing this forces a new AAD B2C Directory to be created.
skuName string
Billing SKU for the B2C tenant. Must be one of: PremiumP1 or PremiumP2 (Standard is not supported). See official docs for more information.
tags {[key: string]: string}
A mapping of tags which should be assigned to the AAD B2C Directory.
tenantId string
The Tenant ID for the AAD B2C tenant.
billing_type str
The type of billing for the AAD B2C tenant. Possible values include: MAU or Auths.
country_code Changes to this property will trigger replacement. str
Country code of the B2C tenant. The country_code should be valid for the specified data_residency_location. See official docs for valid country codes. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
data_residency_location Changes to this property will trigger replacement. str
Location in which the B2C tenant is hosted and data resides. The data_residency_location should be valid for the specified country_code. See official docs for more information. Changing this forces a new AAD B2C Directory to be created. Possible values are Asia Pacific, Australia, Europe, Global and United States.
display_name Changes to this property will trigger replacement. str
The initial display name of the B2C tenant. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
domain_name Changes to this property will trigger replacement. str
Domain name of the B2C tenant, including the .onmicrosoft.com suffix. Changing this forces a new AAD B2C Directory to be created.
effective_start_date str
The date from which the billing type took effect. May not be populated until after the first billing cycle.
resource_group_name Changes to this property will trigger replacement. str
The name of the Resource Group where the AAD B2C Directory should exist. Changing this forces a new AAD B2C Directory to be created.
sku_name str
Billing SKU for the B2C tenant. Must be one of: PremiumP1 or PremiumP2 (Standard is not supported). See official docs for more information.
tags Mapping[str, str]
A mapping of tags which should be assigned to the AAD B2C Directory.
tenant_id str
The Tenant ID for the AAD B2C tenant.
billingType String
The type of billing for the AAD B2C tenant. Possible values include: MAU or Auths.
countryCode Changes to this property will trigger replacement. String
Country code of the B2C tenant. The country_code should be valid for the specified data_residency_location. See official docs for valid country codes. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
dataResidencyLocation Changes to this property will trigger replacement. String
Location in which the B2C tenant is hosted and data resides. The data_residency_location should be valid for the specified country_code. See official docs for more information. Changing this forces a new AAD B2C Directory to be created. Possible values are Asia Pacific, Australia, Europe, Global and United States.
displayName Changes to this property will trigger replacement. String
The initial display name of the B2C tenant. Required when creating a new resource. Changing this forces a new AAD B2C Directory to be created.
domainName Changes to this property will trigger replacement. String
Domain name of the B2C tenant, including the .onmicrosoft.com suffix. Changing this forces a new AAD B2C Directory to be created.
effectiveStartDate String
The date from which the billing type took effect. May not be populated until after the first billing cycle.
resourceGroupName Changes to this property will trigger replacement. String
The name of the Resource Group where the AAD B2C Directory should exist. Changing this forces a new AAD B2C Directory to be created.
skuName String
Billing SKU for the B2C tenant. Must be one of: PremiumP1 or PremiumP2 (Standard is not supported). See official docs for more information.
tags Map<String>
A mapping of tags which should be assigned to the AAD B2C Directory.
tenantId String
The Tenant ID for the AAD B2C tenant.

Import

AAD B2C Directories can be imported using the resource id, e.g.

$ pulumi import azure:aadb2c/directory:Directory example /subscriptions/12345678-1234-9876-4563-123456789012/resourceGroups/example-resource-group/providers/Microsoft.AzureActiveDirectory/b2cDirectories/directory-name
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.