Can't create azure bot service - “This MSA App ID is already in use”

六月ゝ 毕业季﹏ 提交于 2019-12-01 23:36:25

I clicked the Manage and created a set (app id / password) and used that instead of the previous values and it worked ok thereafter.

Background to my answer: For some reason, my current Bot Service stopped working and I had to create a new Bot Service to provide the back-end for my already published bot. However, when you try to create a new Bot Service using your already published bot App ID and App secret, you will get the same message ("This MSA App ID is already in use").

Solution: Delete the old Bot service that does not work anymore. Then create a new Bot Service (with new App ID and App secret) with the same name as your old Bot Service name (so the messaging endpoint URL will look similar). This process will create a new bot in your bot framework portal (under My bots). Now you need to do two things:

  1. Go to your newly created Bot Service (In Azure portal), find the application settings under "settings" tab. In application settings, replace the MicrosoftAppId and MicrosoftAppPassword with the AppId and App secret (= app password) from your published bot. You can find the App ID and password of your published bot from the Bot Framework portal.
  2. In the Bot Framework portal, find your newly created bot under "My bots". You need to copy the messaging endpoint of this bot, into your messaging endpoint of your old (published) bot. In the portal, click on "Edit" besides the "Details" section. Scroll down and copy the messaging endpoint. Go to "My bots" again and click on your old bot. Click the "Edit" besides the "Details" section and paste the endpoint URL there.

Now your newly created bot service (Azure portal) is connected to your old published bot (in Bot Framework Portal). You can go ahead and delete the newly created bot in your Bot Framework portal, as you do not need it anymore.

Most likely you already registered a Microsoft Application with that ID. You need to create a new App Registration and use that one: https://apps.dev.microsoft.com/#/appList

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!