Skip to content

Latest commit

 

History

History
79 lines (54 loc) · 2.81 KB

bot_channel_email.markdown

File metadata and controls

79 lines (54 loc) · 2.81 KB
subcategory layout page_title description
Bot
azurerm
Azure Resource Manager: azurerm_bot_channel_email
Manages a Email integration for a Bot Channel

azurerm_bot_channel_email

Manages a Email integration for a Bot Channel

~> Note A bot can only have a single Email Channel associated with it.

Example Usage

data "azurerm_client_config" "current" {}

resource "azurerm_resource_group" "example" {
  name     = "example-resources"
  location = "northeurope"
}

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_Email" "example" {
  bot_name              = "${azurerm_bot_channels_registration.example.name}"
  location              = "${azurerm_bot_channels_registration.example.location}"
  resource_group_name   = "${azurerm_resource_group.example.name}"
  client_id             = "exampleId"
  client_secret         = "exampleSecret"
  verification_token    = "exampleVerificationToken"
}

Argument Reference

The following arguments are supported:

  • resource_group_name - (Required) The name of the resource group in which to create the Bot Channel. Changing this forces a new resource to be created.

  • location - (Required) The supported Azure location where the resource exists. Changing this forces a new resource to be created.

  • bot_name - (Required) The name of the Bot Resource this channel will be associated with. Changing this forces a new resource to be created.

  • email_address - (Required) The email address that the Bot will authenticate with.

  • email_password - (Required) The email password that the Bot will authenticate with.

Attributes Reference

The following attributes are exported:

  • id - The ID of the Email Integration for a Bot Channel.

Timeouts

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

  • create - (Defaults to 30 minutes) Used when creating the Email Integration for a Bot Channel.
  • update - (Defaults to 30 minutes) Used when updating the Email Integration for a Bot Channel.
  • read - (Defaults to 5 minutes) Used when retrieving the Email Integration for a Bot Channel.
  • delete - (Defaults to 30 minutes) Used when deleting the Email Integration for a Bot Channel.

Import

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

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