Azure SQL server: How to tell if the client is inside or outside Azure

Duc Le Trung 0 Reputation points
2024-06-13T11:46:56.71+00:00

Hi,

I came across this documentation about Connection Policy to Azure SQL servers https://learn.microsoft.com/en-us/azure/azure-sql/database/connectivity-architecture?view=azuresql#connection-policy . There are 3 different methods: Redirect, Proxy, Default. And in Default, connections will be Redirect if client is within Azure and Proxy if client is outside Azure


So can someone explain how the SQL server knows which connections are from within Azure and which connections are from outside Azure? What mechanism they use to check that?

Azure SQL Database
SQL Server
SQL Server
A family of Microsoft relational database management and analysis systems for e-commerce, line-of-business, and data warehousing solutions.
13,166 questions
{count} votes

1 answer

Sort by: Most helpful
  1. akinbade abiola 6,420 Reputation points
    2024-06-13T12:15:41.3566667+00:00

    Hello Duc Le Trung,

    Thanks for your question.

    Broadly, It relies on the client’s IP address to determine if the connection originates from within Azure or from an external source. See:

    https://www.microsoft.com/en-us/download/details.aspx?id=56519

    Regards,

    You can mark it 'Accept Answer' if this helped.

    0 comments No comments