Skip to content

azurermBotWebApp

Manages a Bot Web App.

Example Usage

/*Provider bindings are generated by running cdktf get.
See https://cdk.tf/provider-generation for more details.*/
import * as azurerm from "./.gen/providers/azurerm";
/*The following providers are missing schema information and might need manual adjustments to synthesize correctly: azurerm.
For a more precise conversion please use the --provider flag in convert.*/
const azurermResourceGroupExample = new azurerm.resourceGroup.ResourceGroup(
  this,
  "example",
  {
    location: "West Europe",
    name: "example-resources",
  }
);
const dataAzurermClientConfigCurrent =
  new azurerm.dataAzurermClientConfig.DataAzurermClientConfig(
    this,
    "current",
    {}
  );
const azurermBotWebAppExample = new azurerm.botWebApp.BotWebApp(
  this,
  "example_2",
  {
    location: "global",
    microsoft_app_id: dataAzurermClientConfigCurrent.clientId,
    name: "example",
    resource_group_name: azurermResourceGroupExample.name,
    sku: "F0",
  }
);
/*This allows the Terraform resource name to match the original name. You can remove the call if you don't need them to match.*/
azurermBotWebAppExample.overrideLogicalId("example");

Argument Reference

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.

  • resourceGroupName - (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.

  • microsoftAppId - (Required) The Microsoft Application ID for the Web App Bot. Changing this forces a new resource to be created.

  • displayName - (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.

  • developerAppInsightsKey - (Optional) The Application Insights Key to associate with the Web App Bot.

  • developerAppInsightsApiKey - (Optional) The Application Insights API Key to associate with the Web App Bot.

  • developerAppInsightsApplicationId - (Optional) The Application Insights Application ID to associate with the Web App Bot.

  • luisAppIds - (Optional) A list of LUIS App IDs to associate with the Web App Bot.

  • luisKey - (Optional) The LUIS key to associate with the Web App Bot.

  • tags - (Optional) A mapping of tags to assign to the resource.

Attributes Reference

The following attributes are exported:

  • id - The ID of the Bot Web App.

Timeouts

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.

Import

Bot Web App's can be imported using the resourceId, e.g.

terraform import azurerm_bot_web_app.example /subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/example/providers/Microsoft.BotService/botServices/example