Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
If you prefer manually configuring the resources on Azure, and do not want to follow the automated process, you can follow the following guide. As described in the Core Concepts article, the main things required are an App Registration and an Azure Bot.
Requirements
- An Azure subscription
- Permissions to create Entra ID App registrations. (If you don't have permissions in your tenant, ask your admin to create the App Registration and share the
Application Id) - Permissions to create Azure Bot Service resources
- (Optional) The Azure CLI installed and authenticated to your Azure subscription
Create the Entra App Registration
After a successful App Registration you should have the TenantId, ClientId and ClientSecret values, that you will need later.
Tip
We are using Client Secrets authentication here, but it is possible to use other types of authentication. See the App Authentication setup guide for other methods.
- Navigate to the Entra Id App Registrations
- Select
New App Registrationand provide a name. Take note of the assignedApplication Id(also known asClientId) andTenantId - Navigate to
Certificates & secretsand createNew client secret
Create the Azure Bot Service resource
Tip
You can create the Azure Bot Service resource and the Entra App Registration from this screen, and then you will have to create a new client secret.
- Create or select the resource group where you want to create the Azure Bot Resource
- In the selected resource group, click Create and search for
bot. - Select the option
Azure Bot, and clickCreate - Provide the Bot handle, eg.
MyBot, select Data Residency and Pricing tier- Under Microsoft App ID, select
Single Tenant - In creation type select
Use existing app registrationand provide theApplication Idobtained in the previous step
- Under Microsoft App ID, select
Configure the Azure Bot Service resource
Once the Azure Bot Service resource has been created you can configure it. You will need to have set up a public facing endpoint so that messages from your. You can use DevTunnels if you wish to expose your local servers to public.
- Under
Settings/Configurationprovide the Message endpoint URL, typically it will look like:https://myapp.mydomain.com/api/messages- When using DevTunnels for local development, use the devtunnels hosting URL with the relative path
/api/messages - When deploying to a compute instance, such as App Services, Container Apps, or in other Cloud, use the public hostname with the relative path
/api/messages
- When using DevTunnels for local development, use the devtunnels hosting URL with the relative path
- In
Settings/Channelsenable theMicrosoft Teamschannel.
Save the credentials to use as configuration
echo "TENANT_ID=$tenantId" > "$botName.env"
echo "CLIENT_ID=$appId" >> "$botName.env"
echo "CLIENT_SECRET=$clientSecret" >> "$botName.env"