GatewayTimeout Error When Creating Azure SQL Connection in Logic Apps

Buchammagarivikram Reddy 40 Reputation points
2025-07-03T16:51:03.48+00:00

Hi everyone,

I'm trying to create an Azure SQL connection within Azure Logic Apps. The SQL database is deployed in the same Azure tenant, and I'm using SQL Server authentication. I've double-checked that the server name, database name, username, and password are all correct.

However, I'm consistently getting the following error:

Failed to create connection: {"error":{"code":"GatewayTimeout","message":"The gateway did not receive a response from 'Microsoft.Web' within the specified time period."}}

Since this is an Azure SQL Database (not on-premises), I assume a data gateway shouldn't be required. Has anyone encountered this issue before or know what might be causing it?

Any help or guidance would be greatly appreciated!

Thanks in advance.

User's image

Azure Logic Apps
Azure Logic Apps
An Azure service that automates the access and use of data across clouds without writing code.
3,562 questions
{count} votes

Accepted answer
  1. Krishna Chowdary Paricharla 655 Reputation points Microsoft External Staff Moderator
    2025-07-10T08:34:06.0833333+00:00

    Hello Buchammagarivikram Reddy •,

    Issue: The user encountered a "GatewayTimeout" error while creating an Azure SQL connection in a consumption-based Logic App using SQL Server authentication, even though the SQL database was hosted in Azure (not on-premises). This led to confusion about whether a data gateway was required.

    Root Cause: Consumption-based Logic Apps require a data gateway to connect to SQL Managed Instance (SQL MI), even if it's hosted in Azure, due to the underlying network restrictions and integration runtime behavior.

    Solution: To resolve this, a data gateway server was deployed in the same VNet as the SQL MI. Once in place, the Logic App was able to successfully establish connectivity to the SQL MI. This solution follows Microsoft’s recommended architecture.

    Reference: Connect to SQL Databases from Workflows - Azure Logic Apps | Microsoft Learn

    1 person found this answer helpful.
    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.