OfficeDev / teams-toolkit-samples

Scenario-focused sample applications that help you get started with building Microsoft Teams App.
MIT License
322 stars 224 forks source link

ProvisionError: Failed to provision Developer Portal bot registration #569

Open xlb233 opened 1 year ago

xlb233 commented 1 year ago

I'm following the guidelines to debug this TeamsFx-Samples/share-now at vscode, the provision & deploying process are all good, the bot has successfully been deployed on Azure. However, the task 'set-up-bot' will fail and throw an error when I'm trying to debug the project locally:

[2022-12-11T02:55:29.879Z] [Info] - Finished 'Set up tab' Visual Studio Code task in 0.12 seconds.
[2022-12-11T02:55:29.917Z] [Info] - Running 'Set up bot' Visual Studio Code task.

(Totally 5 steps) Teams Toolkit is setting up bot for debugging.

(1/5) Registering the AAD app which is required to create the bot ...
(2/5) Registering the bot in Bot Framework Portal ...

Summary:

√ Skip registering AAD app but use the existing AAD app from args: c87d9e6d-5f17-4c76-abe3-5a1c1643e937

× ProvisionError: Failed to provision Developer Portal bot registration.

My questions:

  1. What is this 'Registering the bot in Bot Framework Portal ' thing doing
  2. how can I deal with this error.
xzf0587 commented 1 year ago

Hi @xlb233, Since the share-now project has the capability of teams bot, it should create a bot and register it to the Bot Framework Portal to meet the teams bot running requirement. Is there any further error message for this failure? Based on the message above, it seems the error happened when registering the bot. If there is no more error message, you can try to register it manually based on the doc