DirectoryArgs

data class DirectoryArgs(val countryCode: Output<String>? = null, val dataResidencyLocation: Output<String>? = null, val displayName: Output<String>? = null, val domainName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val skuName: Output<String>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<DirectoryArgs>

Manages an AAD B2C Directory.

Example Usage

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());
}
}

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

Constructors

Link copied to clipboard
fun DirectoryArgs(countryCode: Output<String>? = null, dataResidencyLocation: Output<String>? = null, displayName: Output<String>? = null, domainName: Output<String>? = null, resourceGroupName: Output<String>? = null, skuName: Output<String>? = null, tags: Output<Map<String, String>>? = null)

Functions

Link copied to clipboard
open override fun toJava(): DirectoryArgs

Properties

Link copied to clipboard
val countryCode: Output<String>? = null

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.

Link copied to clipboard
val dataResidencyLocation: Output<String>? = null

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.

Link copied to clipboard
val displayName: Output<String>? = null

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.

Link copied to clipboard
val domainName: Output<String>? = null

Domain name of the B2C tenant, including the .onmicrosoft.com suffix. Changing this forces a new AAD B2C Directory to be created.

Link copied to clipboard
val resourceGroupName: Output<String>? = null

The name of the Resource Group where the AAD B2C Directory should exist. Changing this forces a new AAD B2C Directory to be created.

Link copied to clipboard
val skuName: Output<String>? = null

Billing SKU for the B2C tenant. Must be one of: PremiumP1 or PremiumP2 (Standard is not supported). See official docs for more information.

Link copied to clipboard
val tags: Output<Map<String, String>>? = null

A mapping of tags which should be assigned to the AAD B2C Directory.