About serviceUrl pattern

Breeze 1 Reputation point


We're trying to enforce domain check on the backend for the serviceUrl.

I understand the concept that the serviceUrl will be different based on the region.

But could you please confirm if the serviceUrl domain(smba.trafficmanager.net) will change or remain the same?


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.
2,741 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Prasad-MSFT 5,481 Reputation points Microsoft Vendor

    ServiceUrl is sent by Teams in the Bot payload in the turnContext.Activity.serviceUrl property. For all intents and purposes this url will remain constant but very rarely this url might change and our bot should have the logic for updating the stored base url periodically from the payload sent to the bot.
    More about this here: https://learn.microsoft.com/en-us/azure/bot-service/rest-api/bot-framework-rest-connector-api-reference?view=azure-bot-service-4.0#base-uri


    Prasad Das

    If the response is helpful, please click "Accept Answer" and upvote it. You can share your feedback via Microsoft Teams Developer Feedback link. Click here to escalate.

    0 comments No comments