question

AndrewMacPherson-1602 avatar image
0 Votes"
AndrewMacPherson-1602 asked ryanchill answered

Azure Linux WebApp outbound connections

I have a PHP web app that moves files between Sharepoint Online and Azure Blob Storage (DataLake). This runs fine on my Ubuntu box but need to move it to Azure.

I have created a VNet integration with a NAT Gateway with a Public Outbound IP address
I have also tried Hybrid connections as well but to no avail
I am on a Production tier

In Application Logs:
NOTICE: PHP message: PHP Warning: stream_socket_client(): SSL: Handshake timed out
NOTICE: PHP message: PHP Warning: stream_socket_client(): Failed to enable crypto
NOTICE: PHP message: PHP Warning: stream_socket_client(): Unable to connect to ssl://graph.microsoft.com:443 (Connection timed out)


In the outbound connections I only see two attempted connections to an IP That is not that same as graph.microsoft.com.
No SNAT Port exhaustion

The end goal here is to run this file backup service that was built in PHP on Azure. I just need the ability to make outbound requests.


azure-webappsazure-virtual-network
· 2
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

Hi, @AndrewMacPherson-1602

Will it work without VNET integration?

0 Votes 0 ·

Hi @AndrewMacPherson-1602, circling back to see if you removing the VNET integration resolved your outbound request issue. If not, please do let me know, thanks!

0 Votes 0 ·

1 Answer

ryanchill avatar image
0 Votes"
ryanchill answered

Hi @AndrewMacPherson-1602,

Under Troubleshooting NAT Gateway, make sure you've verified the following:

  • That Route All is enabled on your Regional VNET

  • That your NAT Gateway and App Service are on the same VNET.

You can Configuring NAT gateway integration to see if there were any steps you may have missed.


5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.