简体   繁体   English

如何在不将其添加到防火墙的情况下从本地计算机连接到 azure sql? 注意 - 公共访问已关闭

[英]How can i connect to azure sql from my local machine without adding it to firewall? Note - Public acess is turned off

I want a solution wherein I can connect my local machine and other's as well without adding IP address manually in the firewall as it is a time-consuming process.我想要一个解决方案,其中我可以连接我的本地机器和其他机器,而无需在防火墙中手动添加 IP 地址,因为这是一个耗时的过程。 Each time I have to update the IP address in the firewall.每次我必须在防火墙中更新 IP 地址。 I tried connecting Azure SQL Server to Virtual network by the service endpoint SSMS.我尝试通过服务端点 SSMS 将 Azure SQL 服务器连接到虚拟网络。 Then access virtual network by VPN gateway but it's not working.然后通过 VPN 网关访问虚拟网络,但它不工作。

You could set your local machines' IP range to the the SQL database firewall to allow these machines to access the Azure SQL database: You could set your local machines' IP range to the the SQL database firewall to allow these machines to access the Azure SQL database:

  • If you specify an IP address range in the database-level IP firewall rule that's outside the range in the server-level IP firewall rule, only those clients that have IP addresses in the database-level range can access the database. If you specify an IP address range in the database-level IP firewall rule that's outside the range in the server-level IP firewall rule, only those clients that have IP addresses in the database-level range can access the database.

Ref: Azure SQL Database and Azure Synapse IP firewall rules参考: Azure SQL 数据库和 Azure 突触 ZA12A30898F63F53Z 规则79E14CED421AZ69

For example:例如: 在此处输入图像描述

If you want access the SQL database through Vnet, you could create and add virtual network rule to the SQL database firewall:如果要通过 Vnet 访问 SQL 数据库,可以创建虚拟网络规则并将其添加到 SQL 数据库防火墙:

在此处输入图像描述

For more details, please ref: Use virtual network service endpoints and rules for servers in Azure SQL Database有关详细信息,请参考: 使用虚拟网络服务端点和规则在 Azure SQL 数据库中的服务器

Hope this helps.希望这可以帮助。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

相关问题 如何将 Azure SQL 数据库中的副本复制到我的本地 ubuntu 机器中? - How can I make a copy from an Azure SQL Database into my local ubuntu machine? Azure-从我的本地计算机连接到SQL Server - Azure - Connect to SQL Server from my local machine 如何在不为每个客户端IP地址添加防火墙规则的情况下,多个客户端如何连接到Windows Azure SQL数据库? - How can multiple clients connect to a Windows Azure SQL Database without adding firewall rules for each client IP address? 为什么我无法从本地计算机连接到 Azure 容器实例上的 bash shell? - Why can't I connect to a bash shell on an Azure Container Instance from my local machine? 无法从本地计算机连接到SQL Azure - Cannot connect to SQL Azure from local machine 如何连接到本地计算机上的Azure Compute模拟器 - How do I connect to a Azure Compute Emulator on my local machine 从公网/本地机器连接到Azure HDInsight Kafka集群 - Connect to Azure HDInsight Kafka cluster from public network / local machine 尝试psping到Azure计算机防火墙已关闭,但仍无法连接 - Trying to psping to azure machine firewall is off, but still unable to connect 如何在本地计算机上使用azure运行terraform init - How can I run terraform init with azure on my local machine 如何将我的 azure 函数与我的 azure sql 连接 - How can I connect my azure function with my azure sql
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM