Agents

Register a SingleTenant bot with Azure

This article shows how to register a bot with Azure AI Bot Service.

Your bot identity can be managed in Azure in a few different ways.

These instructions are for SingleTenant Identity with a Client Secret.

For those on the Microsoft Tenant, using either MultiTenant or SingleTenant with a Client Secret is prohibited. There are limited options for running locally in this case, with Certiciate SN+I being a viable alternative. If this does not work for you, the only alternative is to use Managed Identity and deploy the Agent code to Azure and run there.

Create the resource

Create the Azure Bot resource, which will allow you to register your bot with the Azure AI Bot Service.

  1. Go to the Azure portal.

  2. In the right pane, select Create a resource.

  3. In the search box enter bot, then press Enter.

  4. Select the Azure Bot card.

    Azure Bot Resource

  5. Select Create.

  6. Enter values in the required fields and review and update settings.

    a. Provide information under Project details. Select whether your bot will have global or local data residency. Currently, the local data residency feature is available for resources in the “westeurope” and “centralindia” region. For more information, see Regionalization in Azure AI Bot Service.

    Azure Bot Settings

    b. Provide information under Microsoft App ID. Select how your bot identity will be managed in Azure and whether to create a new identity or use an existing one.

    Azure Bot Identity

  7. Select Review + create.

  8. If the validation passes, select Create.

  9. Once the deployment completes, select Go to resource. You should see the bot and related resources listed in the resource group you selected.

  10. If this is a Teams bot
    1. Select Settings on the left sidebar, then Channels.
    2. Select Microsoft Teams from the list, and choose appropriate options.
  11. Select Settings, then Configuration

  12. Select Manage Password next to Microsoft App ID Azure Bot Configuration

  13. On the Overview pane, record the Application (client) ID and Directory (tenant) ID

  14. Select Certificates & secrets on the left then Client secrets

  15. Create a new secret by click New client secret

  16. Very important: Copy the new secret and store in a safe place. It is need later when configuring your Agent code.