microsoft / botbuilder-tools

Welcome to the Bot Framework Tools repository, which is the home for a set of tools for developers building bots with the Microsoft Bot Framework
https://github.com/Microsoft/botframework
MIT License
444 stars 262 forks source link

Feature Request: ability to use Custom Subdomain instead of regional domain #1506

Closed daelsala closed 3 years ago

daelsala commented 3 years ago

Issue Description:

Bot Dispatcher currently does not support use of custom subdomains. This prevents users from allowing their QnA or LUIS resources to be behind a VNET since once they are behind a vnet they will need to be called using the custom subdomain only.

ex: This: region.api.cognitive.microsoft.com/qnamaker/

cannot be used to call a qna or luis resource behind a VNET. The following:

customSubDomainName.api.cognitive.microsoft.com/qnamaker/

Is the only way to successfully call a qna or luis resource which is behind a vnet.

We have seen an increasing need for this feature with multiple customers attempting to use dispatcher with QnA and LUIS resources behind a VNET. Can we please have an ETA of when this feature will be implemented in dispatcher?

tsuwandy commented 3 years ago

@daelsala, we'll try to get this deployed before end of the week.

tsuwandy commented 3 years ago

@daelsala, https://www.npmjs.com/package/botdispatch v 1.7.5 is now available and should let user fully customize QnAMaker kb API url.

Follow these steps to customize QnAMaker API endpoint url:

Where you Dispatch CLI is installed, ie C:\Users\\AppData\Roaming\npm\node_modules\botdispatch\bin\netcoreapp2.1

Edit appsettings.json, replace this line:

"QnAMakerEndpointUrlFormat": "https://{0}.api.cognitive.microsoft.com/qnamaker/v4.0" with

"QnAMakerEndpointUrlFormat": "https:///qnamaker/v4.0"

Run "dispatch refresh" or "dispatch create" again