Access denied when trying to access Azure AI API from Discourse

We’re working on setting up a new community on Discourse, currently working on setting up Discourse AI.

When trying to reach the endpoint from Discourse, we get the following error:

Trying to contact the model returned this error: {"error":{"code":"403","message": "Access denied due to Virtual Network/Firewall rules."}}

I’m confused because Azure seems to imply that this error would only apply if you are trying to reach this endpoint from inside the virtual network, but our Discourse instance is hosted by CDCK.

Anyone else run into this, or have any thoughts on how to fix it?

1 Like

Solved! IT turns out it’s related to configuring Azure AI’s networking: Configure Virtual Networks for Azure AI services - Azure AI services | Microsoft Learn

YMMV depending on security implementation, but the answer is there.

4 Likes