Class ChannelTeams
Manages a MS Teams integration for a Bot Channel
Note A bot can only have a single MS Teams Channel associated with it.
Example Usage
using Pulumi;
using Azure = Pulumi.Azure;
class MyStack : Stack
{
public MyStack()
{
var current = Output.Create(Azure.Core.GetClientConfig.InvokeAsync());
var exampleResourceGroup = new Azure.Core.ResourceGroup("exampleResourceGroup", new Azure.Core.ResourceGroupArgs
{
Location = "northeurope",
});
var exampleChannelsRegistration = new Azure.Bot.ChannelsRegistration("exampleChannelsRegistration", new Azure.Bot.ChannelsRegistrationArgs
{
Location = "global",
ResourceGroupName = exampleResourceGroup.Name,
Sku = "F0",
MicrosoftAppId = current.Apply(current => current.ClientId),
});
var exampleChannelTeams = new Azure.Bot.ChannelTeams("exampleChannelTeams", new Azure.Bot.ChannelTeamsArgs
{
BotName = exampleChannelsRegistration.Name,
Location = exampleChannelsRegistration.Location,
ResourceGroupName = exampleResourceGroup.Name,
CallingWebHook = "https://example2.com/",
EnableCalling = false,
});
}
}
Inherited Members
Namespace: Pulumi.Azure.Bot
Assembly: Pulumi.Azure.dll
Syntax
public class ChannelTeams : CustomResource
Constructors
View SourceChannelTeams(String, ChannelTeamsArgs, CustomResourceOptions)
Create a ChannelTeams resource with the given unique name, arguments, and options.
Declaration
public ChannelTeams(string name, ChannelTeamsArgs args, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resource |
| ChannelTeamsArgs | args | The arguments used to populate this resource's properties |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Properties
View SourceBotName
The name of the Bot Resource this channel will be associated with. Changing this forces a new resource to be created.
Declaration
public Output<string> BotName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
CallingWebHook
Specifies the webhook for Microsoft Teams channel calls.
Declaration
public Output<string> CallingWebHook { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
EnableCalling
Specifies whether to enable Microsoft Teams channel calls. This defaults to false.
Declaration
public Output<bool?> EnableCalling { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.Nullable<System.Boolean>> |
Location
The supported Azure location where the resource exists. Changing this forces a new resource to be created.
Declaration
public Output<string> Location { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
ResourceGroupName
The name of the resource group in which to create the Bot Channel. Changing this forces a new resource to be created.
Declaration
public Output<string> ResourceGroupName { get; }
Property Value
| Type | Description |
|---|---|
| Output<System.String> |
Methods
View SourceGet(String, Input<String>, ChannelTeamsState, CustomResourceOptions)
Get an existing ChannelTeams resource's state with the given name, ID, and optional extra properties used to qualify the lookup.
Declaration
public static ChannelTeams Get(string name, Input<string> id, ChannelTeamsState state = null, CustomResourceOptions options = null)
Parameters
| Type | Name | Description |
|---|---|---|
| System.String | name | The unique name of the resulting resource. |
| Input<System.String> | id | The unique provider ID of the resource to lookup. |
| ChannelTeamsState | state | Any extra arguments used during the lookup. |
| CustomResourceOptions | options | A bag of options that control this resource's behavior |
Returns
| Type | Description |
|---|---|
| ChannelTeams |