Bot
Bot resource definition Azure REST API version: 2022-09-15. Prior API version in Azure Native 1.x: 2021-03-01. Other available API versions: 2023-09-15-preview.
Example Usage
Create Bot
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
    var bot = new AzureNative.BotService.Bot("bot", new()
    {
        Kind = "sdk",
        Location = "West US",
        Properties = new AzureNative.BotService.Inputs.BotPropertiesArgs
        {
            CmekKeyVaultUrl = "https://myCmekKey",
            Description = "The description of the bot",
            DeveloperAppInsightKey = "appinsightskey",
            DeveloperAppInsightsApiKey = "appinsightsapikey",
            DeveloperAppInsightsApplicationId = "appinsightsappid",
            DisableLocalAuth = true,
            DisplayName = "The Name of the bot",
            Endpoint = "http://mybot.coffee",
            IconUrl = "http://myicon",
            IsCmekEnabled = true,
            LuisAppIds = new[]
            {
                "luisappid1",
                "luisappid2",
            },
            LuisKey = "luiskey",
            MsaAppId = "exampleappid",
            MsaAppMSIResourceId = "/subscriptions/foo/resourcegroups/bar/providers/microsoft.managedidentity/userassignedidentities/sampleId",
            MsaAppTenantId = "exampleapptenantid",
            MsaAppType = "UserAssignedMSI",
            PublicNetworkAccess = "Enabled",
            SchemaTransformationVersion = "1.0",
        },
        ResourceGroupName = "OneResourceGroupName",
        ResourceName = "samplebotname",
        Sku = new AzureNative.BotService.Inputs.SkuArgs
        {
            Name = "S1",
        },
        Tags =
        {
            { "tag1", "value1" },
            { "tag2", "value2" },
        },
    });
});Content copied to clipboard
package main
import (
	"github.com/pulumi/pulumi-azure-native-sdk/botservice/v2"
	"github.com/pulumi/pulumi/sdk/v3/go/pulumi"
)
func main() {
	pulumi.Run(func(ctx *pulumi.Context) error {
		_, err := botservice.NewBot(ctx, "bot", &botservice.BotArgs{
			Kind:     pulumi.String("sdk"),
			Location: pulumi.String("West US"),
			Properties: &botservice.BotPropertiesArgs{
				CmekKeyVaultUrl:                   pulumi.String("https://myCmekKey"),
				Description:                       pulumi.String("The description of the bot"),
				DeveloperAppInsightKey:            pulumi.String("appinsightskey"),
				DeveloperAppInsightsApiKey:        pulumi.String("appinsightsapikey"),
				DeveloperAppInsightsApplicationId: pulumi.String("appinsightsappid"),
				DisableLocalAuth:                  pulumi.Bool(true),
				DisplayName:                       pulumi.String("The Name of the bot"),
				Endpoint:                          pulumi.String("http://mybot.coffee"),
				IconUrl:                           pulumi.String("http://myicon"),
				IsCmekEnabled:                     pulumi.Bool(true),
				LuisAppIds: pulumi.StringArray{
					pulumi.String("luisappid1"),
					pulumi.String("luisappid2"),
				},
				LuisKey:                     pulumi.String("luiskey"),
				MsaAppId:                    pulumi.String("exampleappid"),
				MsaAppMSIResourceId:         pulumi.String("/subscriptions/foo/resourcegroups/bar/providers/microsoft.managedidentity/userassignedidentities/sampleId"),
				MsaAppTenantId:              pulumi.String("exampleapptenantid"),
				MsaAppType:                  pulumi.String("UserAssignedMSI"),
				PublicNetworkAccess:         pulumi.String("Enabled"),
				SchemaTransformationVersion: pulumi.String("1.0"),
			},
			ResourceGroupName: pulumi.String("OneResourceGroupName"),
			ResourceName:      pulumi.String("samplebotname"),
			Sku: &botservice.SkuArgs{
				Name: pulumi.String("S1"),
			},
			Tags: pulumi.StringMap{
				"tag1": pulumi.String("value1"),
				"tag2": pulumi.String("value2"),
			},
		})
		if err != nil {
			return err
		}
		return nil
	})
}Content copied to clipboard
package generated_program;
import com.pulumi.Context;
import com.pulumi.Pulumi;
import com.pulumi.core.Output;
import com.pulumi.azurenative.botservice.Bot;
import com.pulumi.azurenative.botservice.BotArgs;
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 bot = new Bot("bot", BotArgs.builder()
            .kind("sdk")
            .location("West US")
            .properties(Map.ofEntries(
                Map.entry("cmekKeyVaultUrl", "https://myCmekKey"),
                Map.entry("description", "The description of the bot"),
                Map.entry("developerAppInsightKey", "appinsightskey"),
                Map.entry("developerAppInsightsApiKey", "appinsightsapikey"),
                Map.entry("developerAppInsightsApplicationId", "appinsightsappid"),
                Map.entry("disableLocalAuth", true),
                Map.entry("displayName", "The Name of the bot"),
                Map.entry("endpoint", "http://mybot.coffee"),
                Map.entry("iconUrl", "http://myicon"),
                Map.entry("isCmekEnabled", true),
                Map.entry("luisAppIds",
                    "luisappid1",
                    "luisappid2"),
                Map.entry("luisKey", "luiskey"),
                Map.entry("msaAppId", "exampleappid"),
                Map.entry("msaAppMSIResourceId", "/subscriptions/foo/resourcegroups/bar/providers/microsoft.managedidentity/userassignedidentities/sampleId"),
                Map.entry("msaAppTenantId", "exampleapptenantid"),
                Map.entry("msaAppType", "UserAssignedMSI"),
                Map.entry("publicNetworkAccess", "Enabled"),
                Map.entry("schemaTransformationVersion", "1.0")
            ))
            .resourceGroupName("OneResourceGroupName")
            .resourceName("samplebotname")
            .sku(Map.of("name", "S1"))
            .tags(Map.ofEntries(
                Map.entry("tag1", "value1"),
                Map.entry("tag2", "value2")
            ))
            .build());
    }
}Content copied to clipboard
Import
An existing resource can be imported using its type token, name, and identifier, e.g.
$ pulumi import azure-native:botservice:Bot samplebotname /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}Content copied to clipboard