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.