How to provide multi region support with single Teams app listing

Hasit Parmar 5 Reputation points
2024-08-22T10:01:12.6233333+00:00

We are building Teams app for third party platform which have region specific resources and auth servers.

  1. Does Azure Bot service supports region specific Message endpoint?
  2. How can we identify user's region programatically? We have noticed that there are two fields in TurnContext locale (Language specific) and localTimezone (Timezone specific) but these are not much helpful.
  3. Are there any existing Teams apps which supports multi-region?
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,248 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Prasad-MSFT 6,766 Reputation points Microsoft Vendor
    2024-08-22T11:51:29.7433333+00:00

    The Azure Bot Service does not support region-specific message endpoints as it is a global service and isn't tied to any specific region. However, you can deploy your bot code in the same locality as your Azure Bot resource to maintain complete end-to-end data residency.

    For example, if you're hosting bots in the European Union, you'll want to ensure they are deployed in a region within EU geographical boundaries
    Ref: https://learn.microsoft.com/en-us/azure/bot-service/bot-builder-concept-regionalization?view=azure-bot-service-4.0

    You can capture the locale of the Microsoft Teams user from turnContext class. You can retrieve it from turnContext.Activity.Locale when the user installs the bot. However, this will only provide the locale based on the user's language settings, not the physical region. For physical region identification, one approach is to use the IP address to determine the region.


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.