Azure app service regional VNET integration not working

Mzk_786 1 Reputation point
2020-07-17T15:56:50.783+00:00

Hi All,

We have an Azure App Service that we want to connect to on-prem resources like smtp server and other API's on prem.

We integrated the app service with our Azure VNET using regional integration. The VNET is connected to our on-prem network with site to site VPN. We created a dedicated subnet for regional vnet integration with /27 CIDR block in our VNET,added the subnet range to the on-prem gateway and also added that subnet to allow list of the smtp server but we are still unable to access the smtp server using this regional vnet integration.

Prior to regional integration we tried using the Gateway required integration for app services which uses point to site connection and that works for both SMTP and on-prem API.

Not sure what are we missing here. Below is the error when trying to run the app after regional Vnet integration.Appreciate all your suggestions and tips.

020-07-17 15:35:49.753 +00:00 [Error] Microsoft.AspNetCore.Server.IIS.Core.IISHttpServer: Connection ID "xxxxxxxxxxxxxxxxxxxxxxxxx", Request ID "xxxxxxxxxxxxxxxxxxxxxxxxxxxx": An unhandled exception was thrown by the application.System.Net.Internals.SocketExceptionFactory+ExtendedSocketException (10060): A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond. xxx.xxx.xxxx.x:25at System.Net.Sockets.Socket.DoConnect(EndPoint endPointSnapshot, SocketAddress socketAddress)at System.Net.Sockets.Socket.Connect(EndPoint remoteEP)at System.Net.Sockets.Socket.Connect(IPAddress address, Int32 port)at MailKit.Net.Smtp.SmtpClient.ConnectAsync(String host, Int32 port, SecureSocketOptions options, Boolean doAsync, CancellationToken cancellationToken)

Azure Virtual Network
Azure Virtual Network
An Azure networking service that is used to provision private networks and optionally to connect to on-premises datacenters.
2,159 questions
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
6,909 questions
{count} votes

2 answers

Sort by: Most helpful
  1. Matias Basconcelo 1 Reputation point
    2021-05-20T02:56:33.76+00:00

    Hi, could you solve this? I'm having the same problem. App Service cant reach Exchange server on local network.

    0 comments No comments

  2. Kalyan Polasi 1 Reputation point
    2021-08-31T21:19:02.193+00:00

    were you able to resolve this? we get the same exact issue and need help to get over it. Any help on this would be very helpful.

    Thank yuo

    0 comments No comments