How to configure firewall on SQL Managed Instances

Brian Kim 20 Reputation points
2025-04-04T05:42:43.9633333+00:00

We have a SQL managed instance. Currently we are using public end point to access from our web servers. Is there a way to configure the firewall so that only allowed IP address can access public end point?

Azure SQL Database
{count} votes

1 answer

Sort by: Most helpful
  1. Deepanshukatara-6769 15,195 Reputation points
    2025-04-04T06:22:33.59+00:00

    Hello Brian, Welcome to MS Q&A

    For SQL Managed Instance, you cannot use IP-based firewall rules to restrict access to the public endpoint. The document results indicate that IP-based firewall rules apply to Azure SQL Database and Azure Synapse Analytics, but not to SQL Managed Instance.

    For SQL Managed Instance, you should consider using private endpoints or virtual network firewall rules to restrict access. This allows you to control access from specific virtual networks within the Azure boundary.

    For more information on connecting to Azure SQL Managed Instance and configuring network access, please refer to the following documentation:

    Pls let us know if any further ques

    Kindly accept if it helps

    Thanks
    Deepanshu


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.