Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Applies to:
Azure SQL Database
SQL database in Fabric
This article explains the architecture of various components that direct network traffic to a server in Azure SQL Database and SQL database in Microsoft Fabric. It provides a broad overview of how to connect to and from Azure SQL Database and how the service establishes internal connectivity from an application endpoint to the target database server.
- For connection strings to Azure SQL Database, see Connect and query to Azure SQL Database.
- For settings that control connectivity to the logical server for Azure SQL Database, see connectivity settings.
- This article does not apply to Azure SQL Managed Instance. For more information, see Connectivity architecture for Azure SQL Managed Instance.
- This article does not apply to dedicated SQL pools in Azure Synapse Analytics.
- For settings that control connectivity to dedicated SQL pools in Azure Synapse Analytics, see Azure Synapse Analytics connectivity settings.
- For connection strings to Azure Synapse Analytics pools, see Connect to Synapse SQL.
Overview
Azure SQL Database is more than a virtual machine running SQL Server in the cloud. It manages multiple compute units, establishes logical and security boundaries around data and processes, routes traffic, handles updates and failovers, and provides stable connectivity endpoints for your clients and applications to connect to.
The two principal components of Azure SQL Database connectivity are redundant regional gateways and database cluster. Gateway is the "front door" that accepts client connections, while database clusters host the actual SQL Server workloads.
Every Azure SQL Database belongs to a logical server with a globally unique address like <server-name>.database.windows.net. This address is always the same regardless of which endpoint you use to connect. The port used to connect is 1433 (or 1434 for Dedicated Admin Connection (DAC)).
Multiple logical servers within a region share the gateways and sometimes even nodes within a database cluster. When an application connects to Azure SQL Database, the connection to the correct logical server and database is made according to the logical server's globally unique address name that the application uses to connect.
Important
Use the exact hostname to connect to the Azure SQL Database. Changing hostnames via DNS CNAME records isn't supported. See DNS aliases for a supported alternative.
Connecting to Azure SQL Database
You can connect to an Azure SQL Database resource through the following endpoints:
- Public endpoint to allow inbound traffic from the internet.
- Service endpoints to let your Azure-deployed applications connect to Azure SQL Database service without allowing them broader internet access.
- Private endpoints provide your Azure-deployed applications access to individual Azure SQL Database resources.
Before connecting to Azure SQL Database, review Choosing the connection policy and configure your logical servers and network environment for the policy that best suits your scenarios. To change the connection policy, see Change the connection policy.
Use various network access controls, like built-in firewalls, to specify which IP addresses, virtual networks, or services can connect.
Connecting Azure SQL Database to other resources and services
Azure SQL Database can connect to other Azure services and resources by initiating outbound connections through T-SQL commands and stored procedures. For supported operations, outbound firewall rules restrict the destinations that the logical server can access. Azure SQL Database also conforms to the Network Security Perimeter that governs both inbound and outbound traffic between Azure services within a perimeter group.
Connectivity architecture overview
When a client connects to the gateway, its traffic to the database can follow one of two routes:
- Gateway proxying (“Proxy”), where the gateway connects to the database node on behalf of the client and stays on the network path. Proxy has minimal networking requirements but degrades the overall connection experience.
- Client redirection (“Redirect”), where the gateway provides the client with the host and port of the database node. The client then connects directly to that node. Redirect requires extra network paths from clients to database clusters but delivers a significantly better overall connection experience than Proxy.
You select which route this traffic takes for a particular logical server by setting its connection policy to Redirect, Proxy, or Default. If you don't specify a policy, the logical server uses the Default policy.
Important
Policies provide different levels of performance and reliability. Configure your network environment and logical servers for the Redirect connection policy over either Proxy or Default whenever possible. For more information, see Choosing the connection policy.
Gateway IP addresses
This section lists the IP address ranges assigned to the regional gateways of SQL Database.
When the Proxy connection policy is in effect, database clients must reach all IP addresses in all ranges for the region of the logical server. With the Redirect connection policy, clients must reach a wider set of IP addresses. To accomplish this, use the Sql.<region> service tags in Azure. For more information, see Azure IP Ranges and Service Tags - Public Cloud.
Clients connecting to private endpoints don't need connectivity to any of these ranges because a private endpoint has direct connectivity to the gateways.
| Region name | Gateway IP address ranges |
|---|---|
| East Asia | 13.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 |
| Southeast Asia | 13.67.16.192/29, 20.195.65.32/27, 23.98.80.192/29, 40.78.232.192/29 |
| Australia Central | 20.36.105.32/29, 20.53.48.96/27 |
| Australia Central 2 | 20.36.113.32/29, 20.53.56.32/27 |
| Australia East | 13.70.112.32/29, 20.53.46.128/27, 40.79.160.32/29, 40.79.168.32/29 |
| Australia Southeast | 4.199.88.48/29, 13.77.49.32/29, 48.215.144.48/29, 104.46.179.160/27 |
| Austria East | 68.210.154.160/29, 68.210.175.32/27, 68.210.192.48/29, 68.210.208.48/29 |
| Belgium Central | 9.160.56.96/27, 9.160.82.136/29, 9.160.88.48/29, 9.160.112.48/29 |
| Brazil South | 191.233.200.32/29, 191.234.142.160/27, 191.234.144.32/29, 191.234.152.32/27, 191.234.153.32/27, 191.234.157.136/29 |
| Brazil Southeast | 191.233.15.160/27, 191.233.48.32/29 |
| Canada Central | 13.71.168.32/29, 20.38.144.32/29, 20.48.196.32/27, 52.246.152.32/29 |
| Canada East | 40.69.105.32/29, 52.139.106.192/27 |
| Chile Central | 68.211.15.128/27, 68.211.154.160/29, 68.211.168.24/29, 68.211.184.24/29 |
| Denmark East | 9.205.48.96/27, 9.205.72.48/29, 9.205.96.48/29, 9.205.112.48/29 |
| North Europe | 13.69.233.136/29, 13.74.105.192/29, 52.138.229.72/29, 52.146.133.128/27 |
| West Europe | 13.69.112.168/29, 20.61.99.192/27, 52.236.184.32/29, 104.40.169.32/29 |
| France Central | 20.43.47.192/27, 40.79.128.32/29, 40.79.136.32/29, 40.79.144.32/29 |
| France South | 40.79.176.40/29, 40.79.177.32/29, 52.136.185.0/27 |
| Germany West Central | 51.116.149.32/27, 51.116.152.32/29, 51.116.240.32/29, 51.116.248.32/29 |
| Germany North | 51.116.54.96/27, 51.116.57.32/29 |
| Central India | 20.192.43.160/27, 20.192.96.32/29, 40.80.48.32/29, 104.211.86.32/29 |
| India South Central | 172.198.99.32/27 |
| South India | 40.78.192.32/29, 40.78.193.32/29, 52.172.113.96/27 |
| West India | 52.136.53.160/27, 104.211.144.32/29, 104.211.145.32/29 |
| Indonesia Central | 70.153.167.64/27, 70.153.177.64/29, 70.153.200.24/29, 70.153.216.24/29 |
| Israel Central | 20.217.53.0/27, 20.217.59.248/29, 20.217.75.192/29, 20.217.91.192/29 |
| Israel Northwest | 51.4.136.96/27, 51.4.136.96/27, 51.4.162.136/29, 51.4.162.136/29 |
| Italy North | 4.232.101.160/27, 4.232.107.184/29, 4.232.123.192/29, 4.232.195.192/29 |
| Japan East | 13.78.104.32/29, 20.191.165.160/27, 40.79.184.32/29, 40.79.192.32/29 |
| Japan West | 4.190.144.24/29, 20.18.179.192/29, 20.189.225.160/27, 40.74.96.32/29 |
| Jio India Central | 20.192.48.32/27, 20.192.233.32/29 |
| Jio India West | 20.192.167.224/27, 20.193.200.32/29 |
| Korea Central | 20.44.24.32/29, 20.194.64.32/29, 20.194.73.64/27, 52.231.16.32/29 |
| Korea South | 52.147.112.160/27, 52.231.151.88/29, 52.231.151.96/27 |
| Malaysia South | 20.17.59.128/27, 20.17.67.248/29 |
| Malaysia West | 20.17.127.96/27, 20.17.131.40/29, 20.17.168.24/29, 20.17.184.24/29 |
| Mexico Central | 158.23.11.184/29, 158.23.112.160/27, 158.23.123.192/29, 158.23.195.192/29 |
| New Zealand North | 172.204.167.64/27, 172.204.177.0/29, 172.204.192.24/29, 172.204.208.24/29 |
| Norway East | 51.120.96.32/29, 51.120.104.32/29, 51.120.208.32/29, 51.120.232.192/27 |
| Norway West | 51.13.136.224/27, 51.120.217.32/29 |
| Poland Central | 20.215.13.0/27, 20.215.19.192/29, 20.215.27.192/29, 20.215.155.248/29 |
| Qatar Central | 20.21.43.248/29, 20.21.53.32/27, 20.21.67.192/29, 20.21.75.192/29 |
| South Africa North | 102.133.120.32/29, 102.133.152.32/29, 102.133.221.224/27, 102.133.248.32/29 |
| South Africa West | 102.37.80.96/27, 102.133.25.32/29 |
| Spain Central | 68.221.40.160/27, 68.221.99.184/29, 68.221.147.192/29, 68.221.154.88/29 |
| Sweden Central | 51.12.46.32/27, 51.12.96.32/29, 51.12.224.32/29, 51.12.232.32/29 |
| Sweden South | 51.12.198.32/27, 51.12.200.32/29, 51.12.201.32/29 |
| Switzerland North | 20.208.19.192/29, 51.103.203.192/29, 51.107.56.32/29, 51.107.242.32/27 |
| Switzerland West | 51.107.153.32/29, 51.107.250.64/27 |
| Taiwan North | 51.53.101.32/27, 51.53.107.248/29, 70.157.88.48/29, 167.105.104.48/29 |
| Taiwan Northwest | 51.53.182.32/27, 51.53.187.248/29 |
| UAE Central | 20.37.71.64/27, 20.37.72.96/29, 20.37.73.96/29, 74.243.18.24/29 |
| UAE North | 20.38.143.64/27, 20.38.152.24/29, 40.120.72.32/29, 65.52.248.32/29 |
| UK South | 51.105.64.32/29, 51.105.72.32/29, 51.140.144.32/29, 51.143.209.224/27 |
| UK West | 20.58.66.128/27, 51.140.208.96/29, 51.140.209.32/29 |
| Central US | 13.89.168.192/29, 20.40.228.128/27, 52.182.136.192/29, 104.208.21.192/29 |
| North Central US | 20.49.119.32/27, 20.125.171.192/29, 20.125.203.192/29, 52.162.105.192/29, 52.162.105.200/29 |
| South Central US | 20.45.121.32/29, 20.49.88.32/29, 20.49.89.32/29, 20.65.132.160/27, 40.124.64.136/29, 48.221.168.48/29 |
| South Central US 2 | 48.216.10.160/29, 48.216.34.32/27 |
| West Central US | 13.71.193.32/29, 20.69.0.32/27, 57.151.152.24/29, 172.215.203.64/29 |
| East US | 20.42.65.64/29, 20.42.73.0/29, 20.62.132.160/27, 52.168.116.64/29 |
| East US 2 | 20.62.58.128/27, 40.70.144.192/29, 52.167.104.192/29, 104.208.150.192/29, 172.210.216.24/29 |
| East US 3 | 134.138.83.32/27, 134.138.83.32/27, 134.138.96.48/29, 134.138.96.48/29 |
| Central US EUAP | 20.46.11.32/27, 40.78.200.128/29, 40.78.201.128/29 |
| East US 2 EUAP | 20.51.17.160/27, 40.74.144.32/29, 40.74.145.32/29, 40.75.32.40/29, 40.75.33.32/29, 52.138.88.32/29, 52.138.89.32/29, 68.220.82.88/29 |
| Northeast US 5 | 172.194.84.96/27 |
| Southeast US | 57.151.223.64/27, 68.154.137.64/29 |
| Southeast US 3 | 74.7.56.224/27, 74.7.82.136/29 |
| West US | 13.86.217.224/29, 20.66.3.64/27, 20.168.163.192/29 |
| West US 2 | 13.66.136.192/29, 20.51.9.128/27, 40.78.240.192/29, 40.78.248.192/29 |
| West US 3 | 4.236.112.48/29, 20.150.168.32/29, 20.150.176.32/29, 20.150.184.32/29, 20.150.241.128/27 |
For Gateway IP address ranges for regions in China, see Gateway IP addresses on Microsoft Azure operated by 21Vianet docs.