Share via


Provision an agent in Azure Bot Service using client secret

This article shows how to register an agent with Azure AI Bot Service using Client Secrets.

Create the resource

Create the Azure Bot resource. This allows you to register your agent with the Azure AI Bot Service.

  1. Go to the Azure portal.

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

  3. Find and select the Azure Bot card.

    Azure Bot Resource

  4. Select Create.

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

    a. Provide information under Project details. Select whether your agent 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 agent identity will be managed in Azure and whether to create a new identity or use an existing one.

    Azure Bot Identity

  6. Select Review + create.

  7. If the validation passes, select Create.

  8. Once the deployment is completed, select Go to resource. You should see the agent and related resources listed in the resource group you selected.

  9. If this is a Teams or M365 agent

    1. Select Settings on the left sidebar, then Channels.
    2. Select Microsoft Teams from the list and choose appropriate options.
  10. Select Settings, then Configuration

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

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

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

  14. Create a new secret by click New client secret

Important

Store the new secret and store, ClientId, and TenantId. You need the information later when configuring your agent configuration.

Next Steps