Azure SQL Database connectivity architecture - Azure SQL Database and Azure Synapse Analytics (2024)

Edit

Share via

Applies to: Azure SQL Database connectivity architecture - Azure SQL Database and Azure Synapse Analytics (1) Azure SQL Database Azure SQL Database connectivity architecture - Azure SQL Database and Azure Synapse Analytics (2) Azure Synapse Analytics (dedicated SQL pools only)

This article explains architecture of various components that direct network traffic to a server in Azure SQL Database or dedicated SQL pools in Azure Synapse Analytics. It also explains different connection policies and how it impacts clients connecting from within Azure and clients connecting from outside of Azure.

  • For connection strings to Azure SQL Database, see Connect and query to Azure SQL Database.
  • For connection strings to Azure Synapse Analytics pools, see Connect to Synapse SQL.
  • For settings that control connectivity to the logical server for Azure SQL Database and dedicated SQL pools in Azure Synapse Analytics, see connectivity settings.
  • This article does not apply to Azure SQL Managed Instance. Refer to Connectivity architecture for Azure SQL Managed Instance.

Connectivity architecture

The following diagram provides a high-level overview of the connectivity architecture.

Azure SQL Database connectivity architecture - Azure SQL Database and Azure Synapse Analytics (3)

The following steps describe how a connection is established to Azure SQL Database:

  • Clients connect to the gateway that has a public IP address and listens on port 1433.
  • Depending on the effective connection policy, the gateway redirects or proxies the traffic to the correct database cluster.
  • Inside the database cluster, traffic is forwarded to the appropriate database.

Connection policy

Servers in SQL Database and dedicated SQL pools (formerly SQL DW) in Azure Synapse support the following three options for the server's connection policy setting.

Note

The connection policy for dedicated SQL pools (formerly SQL DW) in Azure Synapse Analytics is set to Default. You cannot change this for dedicated SQL pools in Synapse workspaces.

  • Redirect (recommended): Clients establish connections directly to the node hosting the database, leading to reduced latency and improved throughput. For connections to use this mode, clients need to:
    • Allow outbound communication from the client to all Azure SQL IP addresses in the region on ports in the range of 11000 to 11999. Use the Service Tags for SQL to make this easier to manage. If you are using Private Link, see Use Redirect connection policy with private endpoints for the port ranges to allow.
    • Allow outbound communication from the client to Azure SQL Database gateway IP addresses on port 1433.
    • When using the Redirect connection policy, refer to the Azure IP Ranges and Service Tags – Public Cloud for a list of your region's IP addresses to allow.
  • Proxy: In this mode, all connections are proxied via the Azure SQL Database gateways, leading to increased latency and reduced throughput. For connections to use this mode, clients need to allow outbound communication from the client to Azure SQL Database gateway IP addresses on port 1433.
    • When using the Proxy connection policy, refer to the Gateway IP addresses list later in this article for your region's IP addresses to allow.
  • Default: This is the connection policy in effect on all servers after creation unless you explicitly alter the connection policy to either Proxy or Redirect. The default policy is Redirect for all client connections originating inside of Azure (for example, from an Azure Virtual Machine) and Proxy for all client connections originating outside (for example, connections from your local workstation).

We highly recommend the Redirect connection policy over the Proxy connection policy for the lowest latency and highest throughput. However, you need to meet the extra requirements for allowing network traffic for outbound communication:

  • If the client is an Azure Virtual Machine, you can accomplish this using Network Security Groups (NSG) with service tags.
  • If the client is connecting from a workstation on-premises, you might need to work with your network admin to allow network traffic through your corporate firewall.

To change the connection policy, see Change the connection policy.

Connectivity from within Azure

If you're connecting from within Azure your connections have a connection policy of Redirect by default. A policy of Redirect means that after the TCP session is established to Azure SQL Database, the client session is then redirected to the right database cluster with a change to the destination virtual IP from that of the Azure SQL Database gateway to that of the cluster. Thereafter, all subsequent packets flow directly to the cluster, bypassing the Azure SQL Database gateway. The following diagram illustrates this traffic flow.

Azure SQL Database connectivity architecture - Azure SQL Database and Azure Synapse Analytics (4)

Connectivity from outside of Azure

If you're connecting from outside Azure, your connections have a connection policy of Proxy by default. A policy of Proxy means that the TCP session is established via the Azure SQL Database gateway and all subsequent packets flow via the gateway. The following diagram illustrates this traffic flow.

Azure SQL Database connectivity architecture - Azure SQL Database and Azure Synapse Analytics (5)

Important

Open TCP ports 1434 and 14000-14999 to enable Connecting with DAC.

Gateway IP addresses

The table below lists the individual Gateway IP addresses and Gateway IP address subnets per region.

Periodically, Microsoft retires individual Gateway IP addresses and migrates the traffic to Gateway IP address subnets, as per the process outlined at Azure SQL Database traffic migration to newer Gateways.

We strongly encourage customers to move away from relying on any individual Gateway IP address (since these will be retired in the future). Instead allow network traffic to reach both the individual Gateway IP addresses and Gateway IP address subnets in a region.

Important

  • Logins for SQL Database or dedicated SQL pools (formerly SQL DW) in Azure Synapse can land on any of the individual Gateway IP addresses or Gateway IP address subnets in a region. For consistent connectivity to SQL Database or dedicated SQL pools (formerly SQL DW) in Azure Synapse, allow network traffic to and from all the individual Gateway IP addresses and Gateway IP address subnets in a region.

  • Use the individual Gateway IP addresses and Gateway IP address subnets in this section if you're using a Proxy connection policy to connect to Azure SQL Database. If you're using the Redirect connection policy, refer to the Azure IP Ranges and Service Tags - Public Cloud for a list of your region's IP addresses to allow.

Region nameGateway IP addressesGateway IP address subnets
Australia Central20.36.104.6, 20.36.104.720.36.105.32/29, 20.53.48.96/27
Australia Central 220.36.113.0, 20.36.112.620.36.113.32/29,20.53.56.32/27
Australia East13.75.149.87, 40.79.161.1, 13.70.112.913.70.112.32/29, 40.79.160.32/29, 40.79.168.32/29,20.53.46.128/27
Australia Southeast13.73.109.251, 13.77.48.10, 13.77.49.3213.77.49.32/29,104.46.179.160/27
Brazil South191.233.200.14, 191.234.144.16, 191.234.152.3191.233.200.32/29, 191.234.144.32/29, 191.234.152.32/27, 191.234.153.32/27, 191.234.157.136/29
Canada Central52.246.152.0, 20.38.144.113.71.168.32/29, 20.38.144.32/29, 52.246.152.32/29,20.48.196.32/27
Canada East40.69.105.9, 40.69.105.1040.69.105.32/29,52.139.106.192/27
Central US104.208.21.1, 13.89.169.20104.208.21.192/29, 13.89.168.192/29, 52.182.136.192/29,20.40.228.128/27
China East139.219.130.3552.130.112.136/29
China East 240.73.82.152.130.120.88/29
China North52.130.128.88/29
China North 240.73.50.052.130.40.64/29
East Asia13.75.32.4, 13.75.32.14, 20.205.77.200, 20.205.83.22413.75.32.192/29, 13.75.33.192/29, 20.195.72.32/27,20.205.77.176/29, 20.205.77.200/29, 20.205.83.224/29
East US40.121.158.30, 40.79.153.12, 40.78.225.3220.42.65.64/29, 20.42.73.0/29, 52.168.116.64/29, 20.62.132.160/29
East US 240.79.84.180, 52.177.185.181, 52.167.104.0, 104.208.150.3, 40.70.144.193104.208.150.192/29, 40.70.144.192/29, 52.167.104.192/29,20.62.58.128/27
France Central40.79.129.1, 40.79.137.8, 40.79.145.1240.79.136.32/29, 40.79.144.32/29, 40.79.128.32/29, 20.43.47.192/27
France South40.79.177.0, 40.79.177.10, 40.79.177.1240.79.176.40/29, 40.79.177.32/29, 52.136.185.0/27
Germany West Central51.116.240.0, 51.116.248.0, 51.116.152.051.116.152.32/29, 51.116.240.32/29, 51.116.248.32/29, 51.116.149.32/27
Germany North51.116.56.051.116.57.32/29, 51.116.54.96/27
Central India104.211.96.159, 104.211.86.30, 104.211.86.31, 40.80.48.32, 20.192.96.32104.211.86.32/29, 20.192.96.32/29, 40.80.48.32/29, 20.192.43.160/29
South India104.211.224.14640.78.192.32/29, 40.78.193.32/29, 52.172.113.96/27
West India104.211.160.80, 104.211.144.4104.211.144.32/29, 104.211.145.32/29, 52.136.53.160/27
Central Israel20.217.59.248/29, 20.217.91.192/29,20.217.75.192/29
North Italy4.232.107.184/29, 4.232.195.192/29, 4.232.123.192/29
Japan East40.79.184.8, 40.79.192.5, 13.78.104.32, 40.79.184.3213.78.104.32/29, 40.79.184.32/29, 40.79.192.32/29, 20.191.165.160/27
Japan West104.214.148.156, 40.74.97.1040.74.96.32/29, 20.18.179.192/29, 20.189.225.160/27
Korea Central52.231.32.42, 52.231.17.22, 52.231.17.23, 20.44.24.32, 20.194.64.3320.194.64.32/29, 20.44.24.32/29, 52.231.16.32/29,20.194.73.64/27
Korea South52.231.151.9652.231.151.96/27, 52.231.151.88/29, 52.147.112.160/27
Malaysia South20.17.67.248/29
North Central US52.162.104.33, 52.162.105.952.162.105.200/29, 52.162.105.192/29, 20.49.119.32/27, 20.125.171.192/29
North Europe52.138.224.1, 13.74.104.11313.69.233.136/29, 13.74.105.192/29, 52.138.229.72/29, 52.146.133.128/27
Norway East51.120.96.0, 51.120.96.33, 51.120.104.32, 51.120.208.3251.120.96.32/29, 51.120.104.32/29, 51.120.208.32/29, 51.120.232.192/27
Norway West51.120.216.051.120.217.32/29,51.13.136.224/27
Poland Central20.215.27.192/29, 20.215.155.248/29,20.215.19.192/29
Qatar Central20.21.43.248/29, 20.21.75.192/29, 20.21.67.192/29
Spain Central68.221.99.184/29, 68.221.154.88/29, 68.221.147.192/29
South Africa North102.133.152.0, 102.133.120.2, 102.133.152.32102.133.120.32/29, 102.133.152.32/29, 102.133.248.32/29, 102.133.221.224/27
South Africa West102.133.24.0102.133.25.32/29,102.37.80.96/27
South Central US104.214.16.32, 20.45.121.1, 20.49.88.120.45.121.32/29, 20.49.88.32/29, 20.49.89.32/29, 40.124.64.136/29, 20.65.132.160/27
South East Asia104.43.15.0, 40.78.232.3, 13.67.16.19313.67.16.192/29, 23.98.80.192/29, 40.78.232.192/29,20.195.65.32/27
Sweden Central51.12.224.32/29, 51.12.232.32/29
Sweden South51.12.200.32/29, 51.12.201.32/29
Switzerland North51.107.56.051.107.56.32/29, 20.208.19.192/29, 51.103.203.192/29, 51.107.242.32/27
Taiwan North51.53.107.248/29
Taiwan North west51.53.187.248/29
Switzerland West51.107.152.051.107.153.32/29, 51.107.250.64/27
UAE Central20.37.72.6420.37.72.96/29, 20.37.73.96/29
UAE North65.52.248.040.120.72.32/29, 65.52.248.32/29, 20.38.152.24/29, 20.38.143.64/27
UK South51.140.184.11, 51.105.64.0, 51.140.144.36, 51.105.72.3251.105.64.32/29, 51.105.72.32/29, 51.140.144.32/29, 51.143.209.224/27
UK West51.141.8.11, 51.140.208.96, 51.140.208.9751.140.208.96/29, 51.140.209.32/29, 20.58.66.128/27
West Central US13.78.145.25, 13.78.248.43, 13.71.193.32, 13.71.193.3313.71.193.32/29, 20.69.0.32/27
West Europe104.40.168.105, 52.236.184.163104.40.169.32/29, 13.69.112.168/29, 52.236.184.32/29,20.61.99.192/27
West US104.42.238.205, 13.86.216.19613.86.217.224/29, 20.168.163.192/29, 20.66.3.64/27
West US 240.78.240.8, 40.78.248.1013.66.136.192/29, 40.78.240.192/29, 40.78.248.192/29, 20.51.9.128/27
West US 320.150.168.0, 20.150.184.220.150.168.32/29, 20.150.176.32/29, 20.150.184.32/29, 20.150.241.128/27

Related content

  • For information on how to change the Azure SQL Database connection policy for a server, see conn-policy.
  • For information about Azure SQL Database connection behavior for clients that use ADO.NET 4.5 or a later version, see Ports beyond 1433 for ADO.NET 4.5.
  • For general application development overview information, see SQL Database Application Development Overview.
  • Refer to Azure IP Ranges and Service Tags – Public Cloud
  • What is a logical SQL server in Azure SQL Database and Azure Synapse?
  • What's the difference between Azure Synapse (formerly SQL DW) and Azure Synapse Analytics Workspace

Feedback

Was this page helpful?

Azure SQL Database connectivity architecture - Azure SQL Database and Azure Synapse Analytics (2024)
Top Articles
XRP - Digital Asset for Global Economic Utility | Ripple
Crypto rug pulls: What is a rug pull in crypto and 6 ways to spot it
Where To Go After Howling Pit Code Vein
Top 11 Best Bloxburg House Ideas in Roblox - NeuralGamer
Cintas Pay Bill
Caesars Rewards Loyalty Program Review [Previously Total Rewards]
Tyrunt
Comenity Credit Card Guide 2024: Things To Know And Alternatives
Sarpian Cat
Aktuelle Fahrzeuge von Autohaus Schlögl GmbH & Co. KG in Traunreut
R/Afkarena
978-0137606801
Mary Kay Lipstick Conversion Chart PDF Form - FormsPal
Sivir Urf Runes
Fool’s Paradise movie review (2023) | Roger Ebert
Canvas Nthurston
Webcentral Cuny
Walmart stores in 6 states no longer provide single-use bags at checkout: Which states are next?
Nurse Logic 2.0 Testing And Remediation Advanced Test
FDA Approves Arcutis’ ZORYVE® (roflumilast) Topical Foam, 0.3% for the Treatment of Seborrheic Dermatitis in Individuals Aged 9 Years and Older - Arcutis Biotherapeutics
*Price Lowered! This weekend ONLY* 2006 VTX1300R, windshield & hard bags, low mi - motorcycles/scooters - by owner -...
Reptile Expo Fayetteville Nc
Dwc Qme Database
Sussyclassroom
Dcf Training Number
Soulstone Survivors Igg
Slim Thug’s Wealth and Wellness: A Journey Beyond Music
Amelia Chase Bank Murder
Arrest Gif
Panolian Batesville Ms Obituaries 2022
Jurassic World Exhibition Discount Code
Craigslist Cars And Trucks Mcallen
Melissa N. Comics
Rocksteady Steakhouse Menu
Truis Bank Near Me
Xemu Vs Cxbx
Rogers Centre is getting a $300M reno. Here's what the Blue Jays ballpark will look like | CBC News
Arcadia Lesson Plan | Day 4: Crossword Puzzle | GradeSaver
Frcp 47
Anya Banerjee Feet
התחבר/י או הירשם/הירשמי כדי לראות.
Tgirls Philly
Gamestop Store Manager Pay
Unit 11 Homework 3 Area Of Composite Figures
Hello – Cornerstone Chapel
Stoughton Commuter Rail Schedule
Theater X Orange Heights Florida
What Does the Death Card Mean in Tarot?
Raley Scrubs - Midtown
Supervisor-Managing Your Teams Risk – 3455 questions with correct answers
Latest Posts
Article information

Author: Ray Christiansen

Last Updated:

Views: 5872

Rating: 4.9 / 5 (49 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Ray Christiansen

Birthday: 1998-05-04

Address: Apt. 814 34339 Sauer Islands, Hirtheville, GA 02446-8771

Phone: +337636892828

Job: Lead Hospitality Designer

Hobby: Urban exploration, Tai chi, Lockpicking, Fashion, Gunsmithing, Pottery, Geocaching

Introduction: My name is Ray Christiansen, I am a fair, good, cute, gentle, vast, glamorous, excited person who loves writing and wants to share my knowledge and understanding with you.