我使用 Microsoft 机器人框架开发了聊天机器人,我的客户希望将所有服务保留在 vNet 内部,但在 vNet 内部分配后我们无法访问认知服务。
有人可以帮助我实现这一目标并让我的客户满意吗?
谢谢
最佳答案
我不熟悉认知服务。如果您有configured Azure Cognitive Services virtual networks ,这默认会阻止传入的数据请求。
为了允许请求通过,需要满足以下条件之一:
- 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.
在这种情况下,您需要将客户端置于允许的 VNet 中,或将客户端面向互联网的 IP 地址添加到认知服务的防火墙中。
关于azure - 认知服务(LUIS、QnA 制造商)无法从 vNet 访问,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/66041332/