Manages a Bot Web App.
data "azurerm_client_config" "current" {}
resource "azurerm_resource_group" "example" {
name = "example-resources"
location = "West Europe"
}
resource "azurerm_bot_web_app" "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
}
The following arguments are supported:
name
- (Required) Specifies the name of the Web App Bot. Changing this forces a new resource to be created. Must be globally unique.
resource_group_name
- (Required) The name of the resource group in which to create the Web App Bot. 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.
sku
- (Required) The SKU of the Web App Bot. Valid values include F0
or S1
. Changing this forces a new resource to be created.
microsoft_app_id
- (Required) The Microsoft Application ID for the Web App Bot. Changing this forces a new resource to be created.
display_name
- (Optional) The name of the Web App Bot will be displayed as. This defaults to name
if not specified.
endpoint
- (Optional) The Web App Bot endpoint.
developer_app_insights_key
- (Optional) The Application Insights Key to associate with the Web App Bot.
developer_app_insights_api_key
- (Optional) The Application Insights API Key to associate with the Web App Bot.
developer_app_insights_application_id
- (Optional) The Application Insights Application ID to associate with the Web App Bot.
luis_app_ids
- (Optional) A list of LUIS App IDs to associate with the Web App Bot.
luis_key
- (Optional) The LUIS key to associate with the Web App Bot.
tags
- (Optional) A mapping of tags to assign to the resource.
In addition to the Arguments listed above - the following Attributes are exported:
id
- The ID of the Bot Web App.The timeouts
block allows you to specify timeouts for certain actions:
create
- (Defaults to 30 minutes) Used when creating the Bot Web App.update
- (Defaults to 30 minutes) Used when updating the Bot Web App.read
- (Defaults to 5 minutes) Used when retrieving the Bot Web App.delete
- (Defaults to 30 minutes) Used when deleting the Bot Web App.Bot Web App's can be imported using the resource id
, e.g.
terraform import azurerm_bot_web_app.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.BotService/botServices/example