B2CTenant

class B2CTenant : KotlinCustomResource

API Version: 2019-01-01-preview.

Example Usage

Create tenant

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var b2cTenant = new AzureNative.AzureActiveDirectory.B2CTenant("b2cTenant", new()
{
Location = "United States",
Properties = new AzureNative.AzureActiveDirectory.Inputs.CreateTenantRequestBodyPropertiesArgs
{
CountryCode = "US",
DisplayName = "Contoso",
},
ResourceGroupName = "contosoResourceGroup",
ResourceName = "contoso.onmicrosoft.com",
Sku = new AzureNative.AzureActiveDirectory.Inputs.B2CResourceSKUArgs
{
Name = AzureNative.AzureActiveDirectory.B2CResourceSKUName.Standard,
Tier = AzureNative.AzureActiveDirectory.B2CResourceSKUTier.A0,
},
});
});
package main
import (
azureactivedirectory "github.com/pulumi/pulumi-azure-native-sdk/azureactivedirectory"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azureactivedirectory.NewB2CTenant(ctx, "b2cTenant", &azureactivedirectory.B2CTenantArgs{
Location: pulumi.String("United States"),
Properties: &azureactivedirectory.CreateTenantRequestBodyPropertiesArgs{
CountryCode: pulumi.String("US"),
DisplayName: pulumi.String("Contoso"),
},
ResourceGroupName: pulumi.String("contosoResourceGroup"),
ResourceName: pulumi.String("contoso.onmicrosoft.com"),
Sku: &azureactivedirectory.B2CResourceSKUArgs{
Name: azureactivedirectory.B2CResourceSKUNameStandard,
Tier: azureactivedirectory.B2CResourceSKUTierA0,
},
})
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.azurenative.azureactivedirectory.B2CTenant;
import com.pulumi.azurenative.azureactivedirectory.B2CTenantArgs;
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 b2cTenant = new B2CTenant("b2cTenant", B2CTenantArgs.builder()
.location("United States")
.properties(Map.ofEntries(
Map.entry("countryCode", "US"),
Map.entry("displayName", "Contoso")
))
.resourceGroupName("contosoResourceGroup")
.resourceName("contoso.onmicrosoft.com")
.sku(Map.ofEntries(
Map.entry("name", "Standard"),
Map.entry("tier", "A0")
))
.build());
}
}

Import

An existing resource can be imported using its type token, name, and identifier, e.g.

$ pulumi import azure-native:azureactivedirectory:B2CTenant contoso.onmicrosoft.com /subscriptions/34adfa4f-cedf-4dc0-ba29-b6d1a69ab345/resourceGroups/contosoResourceGroup/providers/Microsoft.AzureActiveDirectory/b2cDirectories/contoso.onmicrosoft.com

Properties

Link copied to clipboard

The billing configuration for the tenant.

Link copied to clipboard
val id: Output<String>
Link copied to clipboard
val location: Output<String>

The location in which the resource is hosted and data resides. Can be one of 'United States', 'Europe', 'Asia Pacific', or 'Australia' (preview). Refer to this documentation for more information.

Link copied to clipboard
val name: Output<String>

The name of the B2C tenant resource.

Link copied to clipboard
val pulumiChildResources: Set<KotlinResource>
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

SKU properties of the Azure AD B2C tenant. Learn more about Azure AD B2C billing at aka.ms/b2cBilling.

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

Resource Tags

Link copied to clipboard
val tenantId: Output<String>?

An identifier of the B2C tenant.

Link copied to clipboard
val type: Output<String>

The type of the B2C tenant resource.

Link copied to clipboard
val urn: Output<String>