BOT Messaging Endpoint URL via API Manager

Meyer, Carsten 1 Reputation point
2020-11-23T13:56:21.413+00:00

Can access the bot messaging endpoint via azure api management, i.e. https://apim-[something].azure-api.net/api/messages instead of https://[botname].azurewebsites.net/api/messages?

Trying this I get a 500 server error response. What can be the issue here?

Azure API Management
Azure API Management
An Azure service that provides a hybrid, multi-cloud management platform for APIs.
2,118 questions
Azure AI Bot Service
Azure AI Bot Service
An Azure service that provides an integrated environment for bot development.
834 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Meyer, Carsten 1 Reputation point
    2020-11-25T10:40:38.21+00:00

    Hello Yutong,

    thank you for your reply.

    I have tried to limit the access to my bot service on an api management service. I have also expanded my bot service by some addionional rest methods.
    Now I wish to restrict the access to these additional rest interfaces to certain users and grant public access to the bot service endpoint. (api/messages)

    In order to achieve this I considered using api management as the right choice.

    Restricting the access to api management the "old" endpoint is no longer accessable, because it is now exposed by the api manager with a new URL like https://[apimanager]/api/messages and a subscription key provided as well.

    Now I have entered the new endpoint in the settings of my "web app-bot": https://[apimanager]/api/messages?subsription-key=[Ocp-Apim-Subscription-Key].

    Trying this the channels "Direct Line" and "Web Chat" don't work anymore and a server error is responded instead.

    Maybe my entire approach is not correct.

    Best Regards
    Carsten Meyer

    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.