SSMS firewall rules error

Johnm 1 Reputation point
2024-11-22T10:49:09.7333333+00:00

I am accessing my Azure host SQL db from my local machine using SSMS. I have a VPN and I have Firewall rules set on the Azure so evertime my IP adress changes which is daily i have to add a new firewall rule. SSMS does this in a pretty straightforward way an it has worked for years like this.

Yesterday this stoped working. SSMS would time out with a connection error after i had goen throuht eth tauthentication process and had confirmation via the browser that the request was authenticated.

When i log in to Azure I can see the IP address sent from SSMS as the next address to add but Azure add it. I now have to press add myslef. this means the process is much much more laborious.

Have you changed the process? Or is there an issue here?

Azure SQL Database
{count} votes

1 answer

Sort by: Most helpful
  1. Vijayalaxmi Kattimani 1,330 Reputation points Microsoft Vendor
    2024-11-22T13:23:56.61+00:00

    Hi @Johnm,

    Welcome to the Microsoft Q&A Platform! Thank you for asking your question here.

    We would like to inform you that, when you create a new server in Azure SQL Database a server-level firewall blocks all access to the public endpoint for the server. Connection attempts from the internet and Azure must pass through the firewall before they reach your server or database. Firewall rules can be of two types Server-level IP firewall rules and Database-level IP firewall rules.

    Azure SQL Database creates a firewall at the server level for single and pooled databases. This firewall blocks connections from IP addresses that do not have permission. To connect to an Azure SQL database from an IP address outside of Azure, you need to create a firewall rule. You can use rules to open a firewall for a specific IP address or for a range of IP addresses.

    Note:

    • Azure SQL Database communicates over port 1433. When you connect from within a corporate network, outbound traffic over port 1433 might not be permitted by your network firewall. This means your IT department needs to open port 1433 for you to connect to your server.
    • A firewall rule of 0.0.0.0 enables all Azure services to pass through the server-level firewall rule and attempt to connect to a database through the server.

    Please refer to the below mentioned links for more information.

    https://learn.microsoft.com/en-us/azure/firewall-manager/policy-overview

    https://learn.microsoft.com/en-us/azure/azure-sql/database/firewall-create-server-level-portal-quickstart?view=azuresql

    https://learn.microsoft.com/en-us/azure/azure-sql/database/firewall-configure?view=azuresql&source=recommendations

    https://learn.microsoft.com/en-us/azure/azure-sql/database/troubleshoot-common-errors-issues?view=azuresql

    https://learn.microsoft.com/en-us/sql/sql-server/install/configure-the-windows-firewall-to-allow-sql-server-access?view=sql-server-ver16

    https://techcommunity.microsoft.com/blog/azurenetworksecurityblog/enhancements-to-the-azure-firewall-user-experience/4297129

    I hope, This response will address your query and helped you to overcome on your challenges.

    If this answers your query, do click Accept Answer and Yes for was this answer helpful. And, if you have any further query do let us know.


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.