CommunityTrainingArgs

data class CommunityTrainingArgs(val communityTrainingName: Output<String>? = null, val disasterRecoveryEnabled: Output<Boolean>? = null, val identityConfiguration: Output<IdentityConfigurationPropertiesArgs>? = null, val location: Output<String>? = null, val portalAdminEmailAddress: Output<String>? = null, val portalName: Output<String>? = null, val portalOwnerEmailAddress: Output<String>? = null, val portalOwnerOrganizationName: Output<String>? = null, val resourceGroupName: Output<String>? = null, val sku: Output<SkuArgs>? = null, val tags: Output<Map<String, String>>? = null, val zoneRedundancyEnabled: Output<Boolean>? = null) : ConvertibleToJava<CommunityTrainingArgs>

A CommunityProviderHub resource Uses Azure REST API version 2023-11-01. In version 2.x of the Azure Native provider, it used API version 2023-11-01.

Example Usage

CreateCommunityTrainings

using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
var communityTraining = new AzureNative.Community.CommunityTraining("communityTraining", new()
{
CommunityTrainingName = "ctApplication",
DisasterRecoveryEnabled = true,
IdentityConfiguration = new AzureNative.Community.Inputs.IdentityConfigurationPropertiesArgs
{
B2cAuthenticationPolicy = "B2C_1_signup_signin",
B2cPasswordResetPolicy = "B2C_1_pwd_reset",
ClientId = "8c92390f-2f30-493d-bd13-d3c3eba3709d",
ClientSecret = "idenityConfigurationClientSecret",
CustomLoginParameters = "custom_hint",
DomainName = "cttenant",
IdentityType = "ADB2C",
TeamsEnabled = false,
TenantId = "c1ffbb60-88cf-4b83-b54f-c47ae6220c19",
},
Location = "southeastasia",
PortalAdminEmailAddress = "ctadmin@ct.com",
PortalName = "ctwebsite",
PortalOwnerEmailAddress = "ctcontact@ct.com",
PortalOwnerOrganizationName = "CT Portal Owner Organization",
ResourceGroupName = "rgCommunityTaining",
Sku = new AzureNative.Community.Inputs.SkuArgs
{
Name = "Commercial",
Tier = AzureNative.Community.SkuTier.Standard,
},
ZoneRedundancyEnabled = true,
});
});
package main
import (
community "github.com/pulumi/pulumi-azure-native-sdk/community/v2"
"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
pulumi.Run(func(ctx *pulumi.Context) error {
_, err := community.NewCommunityTraining(ctx, "communityTraining", &community.CommunityTrainingArgs{
CommunityTrainingName: pulumi.String("ctApplication"),
DisasterRecoveryEnabled: pulumi.Bool(true),
IdentityConfiguration: &community.IdentityConfigurationPropertiesArgs{
B2cAuthenticationPolicy: pulumi.String("B2C_1_signup_signin"),
B2cPasswordResetPolicy: pulumi.String("B2C_1_pwd_reset"),
ClientId: pulumi.String("8c92390f-2f30-493d-bd13-d3c3eba3709d"),
ClientSecret: pulumi.String("idenityConfigurationClientSecret"),
CustomLoginParameters: pulumi.String("custom_hint"),
DomainName: pulumi.String("cttenant"),
IdentityType: pulumi.String("ADB2C"),
TeamsEnabled: pulumi.Bool(false),
TenantId: pulumi.String("c1ffbb60-88cf-4b83-b54f-c47ae6220c19"),
},
Location: pulumi.String("southeastasia"),
PortalAdminEmailAddress: pulumi.String("ctadmin@ct.com"),
PortalName: pulumi.String("ctwebsite"),
PortalOwnerEmailAddress: pulumi.String("ctcontact@ct.com"),
PortalOwnerOrganizationName: pulumi.String("CT Portal Owner Organization"),
ResourceGroupName: pulumi.String("rgCommunityTaining"),
Sku: &community.SkuArgs{
Name: pulumi.String("Commercial"),
Tier: community.SkuTierStandard,
},
ZoneRedundancyEnabled: pulumi.Bool(true),
})
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.community.CommunityTraining;
import com.pulumi.azurenative.community.CommunityTrainingArgs;
import com.pulumi.azurenative.community.inputs.IdentityConfigurationPropertiesArgs;
import com.pulumi.azurenative.community.inputs.SkuArgs;
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 communityTraining = new CommunityTraining("communityTraining", CommunityTrainingArgs.builder()
.communityTrainingName("ctApplication")
.disasterRecoveryEnabled(true)
.identityConfiguration(IdentityConfigurationPropertiesArgs.builder()
.b2cAuthenticationPolicy("B2C_1_signup_signin")
.b2cPasswordResetPolicy("B2C_1_pwd_reset")
.clientId("8c92390f-2f30-493d-bd13-d3c3eba3709d")
.clientSecret("idenityConfigurationClientSecret")
.customLoginParameters("custom_hint")
.domainName("cttenant")
.identityType("ADB2C")
.teamsEnabled(false)
.tenantId("c1ffbb60-88cf-4b83-b54f-c47ae6220c19")
.build())
.location("southeastasia")
.portalAdminEmailAddress("ctadmin@ct.com")
.portalName("ctwebsite")
.portalOwnerEmailAddress("ctcontact@ct.com")
.portalOwnerOrganizationName("CT Portal Owner Organization")
.resourceGroupName("rgCommunityTaining")
.sku(SkuArgs.builder()
.name("Commercial")
.tier("Standard")
.build())
.zoneRedundancyEnabled(true)
.build());
}
}

Import

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

$ pulumi import azure-native:community:CommunityTraining ctApplication /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Community/communityTrainings/{communityTrainingName}

Constructors

Link copied to clipboard
constructor(communityTrainingName: Output<String>? = null, disasterRecoveryEnabled: Output<Boolean>? = null, identityConfiguration: Output<IdentityConfigurationPropertiesArgs>? = null, location: Output<String>? = null, portalAdminEmailAddress: Output<String>? = null, portalName: Output<String>? = null, portalOwnerEmailAddress: Output<String>? = null, portalOwnerOrganizationName: Output<String>? = null, resourceGroupName: Output<String>? = null, sku: Output<SkuArgs>? = null, tags: Output<Map<String, String>>? = null, zoneRedundancyEnabled: Output<Boolean>? = null)

Properties

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

The name of the Community Training Resource

Link copied to clipboard
val disasterRecoveryEnabled: Output<Boolean>? = null

To indicate whether the Community Training instance has Disaster Recovery enabled

Link copied to clipboard

The identity configuration of the Community Training resource

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

The geo-location where the resource lives

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

The email address of the portal admin

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

The portal name (website name) of the Community Training instance

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

The email address of the portal owner. Will be used as the primary contact

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

The organization name of the portal owner

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

The name of the resource group. The name is case insensitive.

Link copied to clipboard
val sku: Output<SkuArgs>? = null

The SKU (Stock Keeping Unit) assigned to this resource.

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

Resource tags.

Link copied to clipboard
val zoneRedundancyEnabled: Output<Boolean>? = null

To indicate whether the Community Training instance has Zone Redundancy enabled

Functions

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