concept new SQL Server in category azure

appears as: The new SQL Server, new SQL Server, new SQL Server
Azure Storage, Streaming, and Batch Analytics: A guide for data engineers

This is an excerpt from Manning's book Azure Storage, Streaming, and Batch Analytics: A guide for data engineers.

The new SQL Server does not allow outside connections by default. They are blocked by a firewall. This includes the query editor in the Azure portal SQLDB blade, Azure services, and SQL Server Management Studio (SSMS). In order to access the new database, you have to allow access through the firewall.

The new SQL Server does not allow outside connections to the engine by default. Outside connections are blocked by a firewall. There are two types of firewall rules you can apply: one for Azure resources, and one for specific IP addresses. The script in Listing 6.7 will set the Allow Azure Endpoints rule, and create another rule for your on-premises network. Run the script in Azure Cloud Shell to create the firewall rules.

The new SQL Server does not allow outside connections to the engine by default. Outside connections are blocked by a firewall. There are two types of firewall rules you can apply: one for Azure resources, and one for specific IP addresses. The script in Listing A.24 will set the Allow Azure Endpoints rule, and create another rule for your on-premises network. Run Listing A.24 in Azure Cloud Shell to create the firewall rules. Remember to update the StartIpAddress and EndIpAddress with your network IP address.

Listing A.24. Create a firewall rule to allow access by Azure resources
New-AzSqlServerFirewallRule -ResourceGroupName "ade-dev-eastus2"
<lineArrow/>-ServerName "ade-dev-eastus2-sql2"
<lineArrow/>-AllowAllAzureIPs

New-AzSqlServerFirewallRule -ResourceGroupName "ade-dev-eastus2"
<lineArrow/>-ServerName "ade-dev-eastus2-sql2"
<lineArrow/>-FirewallRuleName "Onpremises"
<lineArrow/>-StartIpAddress "192.168.0.198"
<lineArrow/>-EndIpAddress "192.168.0.198"

To authenticate to the SQLDB, you can use the server admin credential you created with the new SQL Server. Or you can create a login and user for querying the SQLDB. Run the script in Listing A.25 to create the SQL Server login. This script connects to the Master database on the SQL Server.