B2CTenant Args
Uses Azure REST API version 2023-05-17-preview. In version 2.x of the Azure Native provider, it used API version 2021-04-01. Other available API versions: 2021-04-01, 2023-01-18-preview. These can be accessed by generating a local SDK package using the CLI command pulumi package add azure-native azureactivedirectory [ApiVersion]
. See the ../../../version-guide/#accessing-any-api-version-via-local-packages for details.
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()
{
CountryCode = "US",
DisplayName = "Contoso",
IsGoLocalTenant = true,
Location = "United States",
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/v3"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := azureactivedirectory.NewB2CTenant(ctx, "b2cTenant", &azureactivedirectory.B2CTenantArgs{
CountryCode: pulumi.String("US"),
DisplayName: pulumi.String("Contoso"),
IsGoLocalTenant: pulumi.Bool(true),
Location: pulumi.String("United States"),
ResourceGroupName: pulumi.String("contosoResourceGroup"),
ResourceName: pulumi.String("contoso.onmicrosoft.com"),
Sku: &azureactivedirectory.B2CResourceSKUArgs{
Name: pulumi.String(azureactivedirectory.B2CResourceSKUNameStandard),
Tier: pulumi.String(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 com.pulumi.azurenative.azureactivedirectory.inputs.B2CResourceSKUArgs;
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()
.countryCode("US")
.displayName("Contoso")
.isGoLocalTenant(true)
.location("United States")
.resourceGroupName("contosoResourceGroup")
.resourceName("contoso.onmicrosoft.com")
.sku(B2CResourceSKUArgs.builder()
.name("Standard")
.tier("A0")
.build())
.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/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AzureActiveDirectory/b2cDirectories/{resourceName}
Constructors
Properties
Country code of Azure tenant (e.g. 'US'). Refer to aka.ms/B2CDataResidency to see valid country codes and corresponding data residency locations. If you do not see a country code in an valid data residency location, choose one from the list.
The display name of the Azure AD B2C tenant.
Enable GoLocal add-on to store data at rest in the specific Geo. Refer to aka.ms/B2CDataResidency to see local data residency options.
The location in which the resource is hosted and data resides. Can be one of 'United States', 'Europe', 'Asia Pacific', or 'Australia'. Refer to this documentation for more information.
The name of the resource group.
The initial domain name of the Azure AD B2C tenant.
SKU properties of the Azure AD B2C tenant. Learn more about Azure AD B2C billing at aka.ms/b2cBilling.