Bot Messaging endpoint when using Azure Load Balancer

itay4 36 Reputation points
2024-08-31T17:30:16.6033333+00:00

Hi, when using an Azure Load Balancer, what should my bot messaging endpoint be? How does the Azure Load Balancer affect the endpoint? Do I need to include the port?

Microsoft Teams
Microsoft Teams
A Microsoft customizable chat-based workspace.
9,970 questions
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,205 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Sayali-MSFT 2,341 Reputation points Microsoft Vendor
    2024-09-02T06:46:39.3366667+00:00
    1. what should my bot messaging endpoint be?
      When using an Azure Load Balancer, your bot messaging endpoint should be the public IP address or DNS name of the load balancer, followed by the specific path to your bot's messaging endpoint. For example, if your load balancer's DNS name is myloadbalancer.azure.com and your bot's messaging endpoint is /api/messages, your full endpoint would be https://myloadbalancer.azure.com/api/messages.
    2. How does the Azure Load Balancer affect the endpoint? The Azure Load Balancer distributes incoming network traffic across multiple instances of your bot, which helps improve availability and scalability. It ensures that your bot can handle more traffic and remain responsive even if one or more instances fail.
    3. Do I need to include the port? Yes, you do need to include the port in your endpoint if your bot is listening on a specific port other than the default HTTPS port (443). For example, if your bot is listening on port 8080, your endpoint would be https://myloadbalancer.azure.com:8080/api/messages Document Link-https://learn.microsoft.com/en-us/azure/bot-service/bot-service-overview?view=azure-bot-service-4.0
    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.