One Azure App registration. for both a BOT + TAB app

Robert Stevens 25 Reputation points
2024-07-11T12:16:01.89+00:00

Hi,

I currently have a combined bot + tab app. When using the teams toolkit to spin them up, it creates two separate applications in Azure, e.g.

  • app-name
  • app-name-aad

The "app-name-aad" is used for the Tab app to auth/indentify the current user.

  1. Is it possible to have only one Azure application for both of these? i.e. app-name

As I have tried creating one, and then using the "app-name-aad" settings on "app-name" as well and then updating my manifest to only use "app-name"'s settings.

When trying to debug it on my local I get an error when trying to install the Tab app to a channel:

{"errorCode":"InvalidStaticTabUrl"}

Nothing in regards to the static url was changed in the manifest file, only these properties to match the "app-name" project:

# AAD_APP_CLIENT_ID=abc
# AAD_APP_OBJECT_ID=xyz

If i switch back to the "app-name" +"app-name-aad", then everything works again. In both instances the TAB_DOMAIN is set to http://localhost:53000/ which is correct.

Any suggestions?

Microsoft Teams Development
Microsoft Teams Development
Microsoft Teams: A Microsoft customizable chat-based workspace.Development: The process of researching, productizing, and refining new or existing technologies.
3,845 questions
0 comments No comments
{count} vote

1 answer

Sort by: Most helpful
  1. Q&A Assist
    2024-07-11T12:16:01.9+00:00
    AI generated content. This question contains an answer created with AI from Q&A Assist. Learn more

    It is possible to have only one Azure application for both a bot and a tab app. However, it is not recommended as it can cause issues with authentication and identification of the current user. It is recommended to keep them separate as the Teams Toolkit does by default.

    Regarding the error message you are receiving, "InvalidStaticTabUrl", this can occur if the static URL in your manifest file is not valid. Make sure that the URL is using HTTPS and is either the same domain as the settings page or specified in the manifest's validDomains list.

    As for your attempt to use the "app-name-aad" settings on "app-name", it is unclear what changes you made to the manifest file. However, it is recommended to keep the two applications separate as mentioned earlier.

    References:

    0 comments No comments

Your answer

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