An Azure service that provides an integrated environment for bot development.
Hi Bhatt, Nitin,
This type of connection error between an Azure Bot and a Foundry Bot usually happens due to configuration or identity mismatch between the two environments.
Here are a few things you can check step by step.
First, make sure both bots are using the same Azure Active Directory tenant and subscription. If the Azure Bot was created in a different tenant or subscription than the Foundry project, the connection will fail even if everything looks correct in the portal.
Next, verify the App Registration linked to the Azure Bot. The Application ID used by the Azure Bot should match the identity configured in the Foundry Bot. Also check that the Client Secret or Certificate is still valid and not expired.
Another common issue is API permissions. The App Registration should have the required Microsoft Graph permissions, and admin consent must be granted. Without proper consent, the Foundry Bot will not be able to authenticate correctly.
Also double‑check the messaging endpoint configured in the Azure Bot channel. It should point to the correct Foundry Bot endpoint and environment. Even a small mismatch, like using an old endpoint or a different environment, can cause connection failures.
If you recently recreated or migrated the bot from Azure Bot to Foundry Bot, try re‑saving the bot configuration and reconnecting it. In many cases, older references or cached values cause the connection to fail until the configuration is refreshed.
You can also review the bot logs in Azure Monitor or Application Insights. These logs usually show whether the error is related to authentication, permission, or endpoint access, which makes troubleshooting much easier.
Helpful official references that explain these areas in more detail:
- Azure Bot authentication and app registration setup on Microsoft Learn https://dotnet.territoriali.olinfo.it/azure/bot-service/bot-builder-authentication
Once these points are aligned, the connection between the Azure Bot and Foundry Bot should start working as expected.
I Hope this helps. Do let me know if you have any further queries.
Thankyou!