Channel Args
    data class ChannelArgs(val channelName: Output<String>? = null, val kind: Output<Either<String, Kind>>? = null, val location: Output<String>? = null, val properties: Output<Any>? = null, val resourceGroupName: Output<String>? = null, val resourceName: Output<String>? = null, val sku: Output<SkuArgs>? = null, val tags: Output<Map<String, String>>? = null) : ConvertibleToJava<ChannelArgs> 
Bot channel 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 Alexa Channel
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
    var channel = new AzureNative.BotService.Channel("channel", new()
    {
        ChannelName = "AlexaChannel",
        Location = "global",
        Properties = new AzureNative.BotService.Inputs.AlexaChannelArgs
        {
            ChannelName = "AlexaChannel",
            Properties = new AzureNative.BotService.Inputs.AlexaChannelPropertiesArgs
            {
                AlexaSkillId = "XAlexaSkillIdX",
                IsEnabled = true,
            },
        },
        ResourceGroupName = "OneResourceGroupName",
        ResourceName = "samplebotname",
    });
});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.NewChannel(ctx, "channel", &botservice.ChannelArgs{
			ChannelName: pulumi.String("AlexaChannel"),
			Location:    pulumi.String("global"),
			Properties: botservice.AlexaChannel{
				ChannelName: "AlexaChannel",
				Properties: botservice.AlexaChannelProperties{
					AlexaSkillId: "XAlexaSkillIdX",
					IsEnabled:    true,
				},
			},
			ResourceGroupName: pulumi.String("OneResourceGroupName"),
			ResourceName:      pulumi.String("samplebotname"),
		})
		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.Channel;
import com.pulumi.azurenative.botservice.ChannelArgs;
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 channel = new Channel("channel", ChannelArgs.builder()
            .channelName("AlexaChannel")
            .location("global")
            .properties(Map.ofEntries(
                Map.entry("channelName", "AlexaChannel"),
                Map.entry("properties", Map.ofEntries(
                    Map.entry("alexaSkillId", "XAlexaSkillIdX"),
                    Map.entry("isEnabled", true)
                ))
            ))
            .resourceGroupName("OneResourceGroupName")
            .resourceName("samplebotname")
            .build());
    }
}Content copied to clipboard
Create Channel
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
    var channel = new AzureNative.BotService.Channel("channel", new()
    {
        ChannelName = "EmailChannel",
        Location = "global",
        Properties = new AzureNative.BotService.Inputs.EmailChannelArgs
        {
            ChannelName = "EmailChannel",
            Properties = new AzureNative.BotService.Inputs.EmailChannelPropertiesArgs
            {
                EmailAddress = "a@b.com",
                IsEnabled = true,
                Password = "pwd",
            },
        },
        ResourceGroupName = "OneResourceGroupName",
        ResourceName = "samplebotname",
    });
});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.NewChannel(ctx, "channel", &botservice.ChannelArgs{
			ChannelName: pulumi.String("EmailChannel"),
			Location:    pulumi.String("global"),
			Properties: botservice.EmailChannel{
				ChannelName: "EmailChannel",
				Properties: botservice.EmailChannelProperties{
					EmailAddress: "a@b.com",
					IsEnabled:    true,
					Password:     "pwd",
				},
			},
			ResourceGroupName: pulumi.String("OneResourceGroupName"),
			ResourceName:      pulumi.String("samplebotname"),
		})
		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.Channel;
import com.pulumi.azurenative.botservice.ChannelArgs;
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 channel = new Channel("channel", ChannelArgs.builder()
            .channelName("EmailChannel")
            .location("global")
            .properties(Map.ofEntries(
                Map.entry("channelName", "EmailChannel"),
                Map.entry("properties", Map.ofEntries(
                    Map.entry("emailAddress", "a@b.com"),
                    Map.entry("isEnabled", true),
                    Map.entry("password", "pwd")
                ))
            ))
            .resourceGroupName("OneResourceGroupName")
            .resourceName("samplebotname")
            .build());
    }
}Content copied to clipboard
Create DirectLine Speech Channel
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
    var channel = new AzureNative.BotService.Channel("channel", new()
    {
        ChannelName = "DirectLineSpeechChannel",
        Location = "global",
        Properties = new AzureNative.BotService.Inputs.DirectLineSpeechChannelArgs
        {
            ChannelName = "DirectLineSpeechChannel",
            Properties = new AzureNative.BotService.Inputs.DirectLineSpeechChannelPropertiesArgs
            {
                CognitiveServiceRegion = "XcognitiveServiceRegionX",
                CognitiveServiceSubscriptionKey = "XcognitiveServiceSubscriptionKeyX",
                IsEnabled = true,
            },
        },
        ResourceGroupName = "OneResourceGroupName",
        ResourceName = "samplebotname",
    });
});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.NewChannel(ctx, "channel", &botservice.ChannelArgs{
			ChannelName: pulumi.String("DirectLineSpeechChannel"),
			Location:    pulumi.String("global"),
			Properties: botservice.DirectLineSpeechChannel{
				ChannelName: "DirectLineSpeechChannel",
				Properties: botservice.DirectLineSpeechChannelProperties{
					CognitiveServiceRegion:          "XcognitiveServiceRegionX",
					CognitiveServiceSubscriptionKey: "XcognitiveServiceSubscriptionKeyX",
					IsEnabled:                       true,
				},
			},
			ResourceGroupName: pulumi.String("OneResourceGroupName"),
			ResourceName:      pulumi.String("samplebotname"),
		})
		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.Channel;
import com.pulumi.azurenative.botservice.ChannelArgs;
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 channel = new Channel("channel", ChannelArgs.builder()
            .channelName("DirectLineSpeechChannel")
            .location("global")
            .properties(Map.ofEntries(
                Map.entry("channelName", "DirectLineSpeechChannel"),
                Map.entry("properties", Map.ofEntries(
                    Map.entry("cognitiveServiceRegion", "XcognitiveServiceRegionX"),
                    Map.entry("cognitiveServiceSubscriptionKey", "XcognitiveServiceSubscriptionKeyX"),
                    Map.entry("isEnabled", true)
                ))
            ))
            .resourceGroupName("OneResourceGroupName")
            .resourceName("samplebotname")
            .build());
    }
}Content copied to clipboard
Create Email Channel
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
    var channel = new AzureNative.BotService.Channel("channel", new()
    {
        ChannelName = "EmailChannel",
        Location = "global",
        Properties = new AzureNative.BotService.Inputs.EmailChannelArgs
        {
            ChannelName = "EmailChannel",
            Properties = new AzureNative.BotService.Inputs.EmailChannelPropertiesArgs
            {
                AuthMethod = 1,
                EmailAddress = "a@b.com",
                IsEnabled = true,
                MagicCode = "000000",
            },
        },
        ResourceGroupName = "OneResourceGroupName",
        ResourceName = "samplebotname",
    });
});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.NewChannel(ctx, "channel", &botservice.ChannelArgs{
			ChannelName: pulumi.String("EmailChannel"),
			Location:    pulumi.String("global"),
			Properties: botservice.EmailChannel{
				ChannelName: "EmailChannel",
				Properties: botservice.EmailChannelProperties{
					AuthMethod:   1,
					EmailAddress: "a@b.com",
					IsEnabled:    true,
					MagicCode:    "000000",
				},
			},
			ResourceGroupName: pulumi.String("OneResourceGroupName"),
			ResourceName:      pulumi.String("samplebotname"),
		})
		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.Channel;
import com.pulumi.azurenative.botservice.ChannelArgs;
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 channel = new Channel("channel", ChannelArgs.builder()
            .channelName("EmailChannel")
            .location("global")
            .properties(Map.ofEntries(
                Map.entry("channelName", "EmailChannel"),
                Map.entry("properties", Map.ofEntries(
                    Map.entry("authMethod", 1),
                    Map.entry("emailAddress", "a@b.com"),
                    Map.entry("isEnabled", true),
                    Map.entry("magicCode", "000000")
                ))
            ))
            .resourceGroupName("OneResourceGroupName")
            .resourceName("samplebotname")
            .build());
    }
}Content copied to clipboard
Create Line Channel
using System.Collections.Generic;
using System.Linq;
using Pulumi;
using AzureNative = Pulumi.AzureNative;
return await Deployment.RunAsync(() =>
{
    var channel = new AzureNative.BotService.Channel("channel", new()
    {
        ChannelName = "LineChannel",
        Location = "global",
        Properties = new AzureNative.BotService.Inputs.LineChannelArgs
        {
            ChannelName = "LineChannel",
            Properties = new AzureNative.BotService.Inputs.LineChannelPropertiesArgs
            {
                LineRegistrations = new[]
                {
                    new AzureNative.BotService.Inputs.LineRegistrationArgs
                    {
                        ChannelAccessToken = "channelAccessToken",
                        ChannelSecret = "channelSecret",
                    },
                },
            },
        },
        ResourceGroupName = "OneResourceGroupName",
        ResourceName = "samplebotname",
    });
});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.NewChannel(ctx, "channel", &botservice.ChannelArgs{
			ChannelName: pulumi.String("LineChannel"),
			Location:    pulumi.String("global"),
			Properties: botservice.LineChannel{
				ChannelName: "LineChannel",
				Properties: botservice.LineChannelProperties{
					LineRegistrations: []botservice.LineRegistration{
						{
							ChannelAccessToken: "channelAccessToken",
							ChannelSecret:      "channelSecret",
						},
					},
				},
			},
			ResourceGroupName: pulumi.String("OneResourceGroupName"),
			ResourceName:      pulumi.String("samplebotname"),
		})
		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.Channel;
import com.pulumi.azurenative.botservice.ChannelArgs;
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 channel = new Channel("channel", ChannelArgs.builder()
            .channelName("LineChannel")
            .location("global")
            .properties(Map.ofEntries(
                Map.entry("channelName", "LineChannel"),
                Map.entry("properties", Map.of("lineRegistrations", Map.ofEntries(
                    Map.entry("channelAccessToken", "channelAccessToken"),
                    Map.entry("channelSecret", "channelSecret")
                )))
            ))
            .resourceGroupName("OneResourceGroupName")
            .resourceName("samplebotname")
            .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:Channel myresource1 /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.BotService/botServices/{resourceName}/channels/{channelName}Content copied to clipboard
Constructors
Link copied to clipboard
                fun ChannelArgs(channelName: Output<String>? = null, kind: Output<Either<String, Kind>>? = null, location: Output<String>? = null, properties: Output<Any>? = null, resourceGroupName: Output<String>? = null, resourceName: Output<String>? = null, sku: Output<SkuArgs>? = null, tags: Output<Map<String, String>>? = null)