Closed yuting1008 closed 1 week ago
@yuting1008 - Thank you for your inquiry about your Teams app development issue! We will check this at our end and will get back to you.
I try to follow Case 2 solultion in the help link that the error message provides.
This is what I have done:
teamsapp.yml
and teamsapp.local.yml
files to use aadApp/create
actionBOT_OBJECT_ID
to env/.env.{name}
after updated the yaml fileBut it doesn't work. The error message is as below.
(×) Error: aadApp/create failed. (×) Error: Service management reference is required when creating Microsoft Entra app in Microsoft tenant. Please refer to the help link to provide a valid service management reference.
Hello @yuting1008 - We are currently unable to reproduce the issue you’re experiencing.
Could you kindly recheck and follow the steps outlined in the README file? Additionally, may I ask you to try using the manifest provided below? expert-finder.zip
Hi @sayali-MSFT
I tried the manifest you provided and the sample prompt in README but it still didn't work. in Copilot for Microsoft 365
in Chat It said "Couldn't connect to the App. Please try again."
I also rechecked and followed the steps outlined in the README file. Below is the complete error message when I run the app in Teams web client.
I seem to solve the botAadApp/create problem by creating App Registration and providing BOT_ID and SECRET_BOT_PASSWORD manually.
What I have done:
Create App Registration and generate a secret
Add BOT_ID to env.local
Add SECRET_BOT_PASSWORD to env.local.user
After running the app in Teams web client, I am now facing the other issue. According to the README, Azure bot will be created automatically in the selected subscription and resource group while running the sample using Toolkit.
However, the Azure Bot Service wasn't create automatically in my resource group. The Bot was created in dev.framework.com instead.
And the APP was still unable to connect.
Hello @yuting1008, Glad to hear that your posted issue is resolved! We are currently unable to reproduce the issue you’re experiencing.
it seems that the bot is being created in a different resource group (dev.framework.com) instead of the one you selected. This issue might be related to the configuration settings or the way the bot service is being deployed.
Ensure that the configuration settings in your project are correctly pointing to the desired subscription and resource group. Double-check the env.local file or any other configuration files for any discrepancies. Also, Check the deployment logs for any errors or warnings that might indicate why the bot service wasn't created in the expected resource group. This can provide clues about what went wrong during the deployment process.
This issue has been automatically marked as stale because it has been marked as requiring author feedback but has not had any activity for 3 days. It will be closed if no further activity occurs within 3 days of this comment.
Hi @yuting1008! This issue is closed in our system. We would like your feedback on your experience with our support team and Platform.
Best regards, Teams Platform
I am reproducing https://github.com/OfficeDev/Microsoft-Teams-Samples/tree/main/samples/msgext-expert-finder-js. When setting up resources, I fail to run the app in a Teams web client.
Below is the botAadApp/create.
How to fix this issue? Thank you!