How do you configure app service to access to an external resource?

Danny Grady 1 Reputation point
2021-03-26T19:55:33.933+00:00

I'm running a .NET Core 5 Web API deployed to an Azure App Service.

After receiving a request, my app attempts to contact an external URL (in this case, https://<my company name>.cognitiveservices.azure.com/). Unfortunately, I get the error "AcessDenied - Access denied due to Virtual Network/Firewall rules."

How do you configure an App Service to allow itself to communicate with an external resource?

On the networking settings there seems to be only four options, VNET, Hybrid Connections (both are irrelevant here), Azure front door seems concerned with load balancing and DDOS protection, and access restrictions IIRC seems like it's for specific IP whitelisting.

Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,865 questions
{count} votes