Agents

Register a Managed Identity 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 User Managed Identity. If the bot is to be used for local debugging then Managed Identity will not work. It is recommended that SingleTenant is used instead.

For those on the Microsoft Tenant, using either MultiTenant or SingleTenant with a 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 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.