How do I allow an AppService to access a port on a VM in Azure?

  • Page Owner: Not Set
  • Last Reviewed: 2020-05-07

I have a Solr server and I need my App Service to be able to access the Solr port I'm using (8983). I've added the public IP, but it's still not going through.


Answer

AppServices have several outgoing IPs.

You'll want to query them and add all of them to the VM's network security group. To query this from the command line:

az webapp show --resource-group Blend-Interactive --name your-webapp-name --query outboundIpAddresses