Directory Args
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",
});
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")
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",
});
});
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
})
}
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());
}
}
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
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
Properties
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.
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
.
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 of the B2C tenant, including the .onmicrosoft.com
suffix. Changing this forces a new AAD B2C Directory to be created.
The name of the Resource Group where the AAD B2C Directory should exist. Changing this forces a new AAD B2C Directory to be created.
Billing SKU for the B2C tenant. Must be one of: PremiumP1
or PremiumP2
(Standard
is not supported). See official docs for more information.