[英]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:
Ref: Azure SQL Database and Azure Synapse IP firewall rules参考: Azure SQL 数据库和 Azure 突触 ZA12A30898F63F53Z 规则79E14CED421AZ69
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.