azurerm_bot_channel_directline

Manages a Directline integration for a Bot Channel

Example Usage

data "azurerm_client_config" "current" {}

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "West Europe"
}

resource "azurerm_bot_channels_registration" "example" {
  name                = "example"
  location            = "global"
  resource_group_name = azurerm_resource_group.example.name
  sku                 = "F0"
  microsoft_app_id    = data.azurerm_client_config.current.client_id
}

resource "azurerm_bot_channel_directline" "example" {
  bot_name            = azurerm_bot_channels_registration.example.name
  location            = azurerm_bot_channels_registration.example.location
  resource_group_name = azurerm_resource_group.example.name

  site {
    name    = "default"
    enabled = true
  }
}

Argument Reference

The following arguments are supported:


A site block has the following properties:

Attributes Reference

In addition to the Arguments listed above - the following Attributes are exported:


A site block exports the following:

Timeouts

The timeouts block allows you to specify timeouts for certain actions:

Import

The Directline Channel for a Bot can be imported using the resource id, e.g.

terraform import azurerm_bot_channel_directline.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.BotService/botServices/example/channels/DirectlineChannel