Share via

When adding a connection setting, how can I resolve "Unable to find the bot with the specified id." error?

Daniel Sargeant 0 Reputation points
2023-10-04T18:02:38.9233333+00:00

I've recently provisioned an Azure bot and am trying to add authentication via Active Directory following the docs. When adding the OAuth connection settings, I get an ajaxExtended error when adding a name that says "Unable to find the bot with the specified id." In the network tab, it looks like the bot is calling dev.botframework.com to confirm the bot's id, which doesn't seem like it should be required if I've already set up the bot in the portal. How can I move forward? I tried to add the connection settings via terraform and got this error in the portal UI:

{
  "shellProps": {
    "sessionId": "8bf4a3d518204a4b95a43bb21e3a98f5",
    "extName": "Microsoft_Azure_BotService",
    "contentName": "ConnectionSettingBlade",
    "resourceId": "/subscriptions/***/resourceGroups/***/providers/Microsoft.BotService/botServices/***-bot-dev",
    "code": 403
  },
  "error": {
    "message": "Unable to find the bot with the specified id.",
    "code": 403,
    "error": {
      "message": "ajaxExtended call failed",
      "name": "AjaxError",
      "stack": "AjaxError: ajaxExtended call failed\n    at n.t (https://portal.azure.com/Content/Dynamic/SazrEY7ctWgp.js:57:861)\n    at new n (https://portal.azure.com/Content/Dynamic/IrWo1B9N8NOi.js:1:46822)\n    at T.reject (https://portal.azure.com/Content/Dynamic/IrWo1B9N8NOi.js:1:144236)\n    at Object.
Azure AI Bot Service
Azure AI Bot Service

An Azure service that provides an integrated environment for bot development.


Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.