Search code examples
azurebotframeworkazure-cognitive-servicesazure-virtual-networkvnet

Cognitive Services (LUIS,QnA maker ) are not accessing from vNet


I developed Chat bot using Microsoft bot framework and my client want to keep all services inside vNet but we are not able to access cognitive services after assigning inside vNet.

Can someone help me here to achieve it and make my client happy ?

Thanks,


Solution

  • I am not familiar with cognitive services. If you have configured Azure Cognitive Services virtual networks, this blocks incoming requests for data by default.

    In order to allow requests through, one of the following conditions needs to be met:

    • The request should originate from a service operating within an Azure Virtual Network (VNet) on the allowed subnet list of the target Cognitive Services account. The endpoint in requests originated from VNet needs to be set as the custom subdomain of your Cognitive Services account.
    • Or the request should originate from an allowed list of IP addresses.

    In this case, you need to make your clients in the allowed VNet or add the clients' internet-facing IP addresses in the firewall of cognitive services.