About serviceUrl pattern

Breeze 1 Reputation point
2022-07-19T08:12:15.76+00:00

Hi,

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?

Thanks.

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,341 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Prasad-MSFT 6,876 Reputation points Microsoft Vendor
    2022-07-19T08:40:42.603+00:00

    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

    Thanks,

    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

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.