在没有防火墙的情况下安全地连接到Azure SQL数据库 [英] Securely Connecting to Azure SQL Database without firewalls

查看:98
本文介绍了在没有防火墙的情况下安全地连接到Azure SQL数据库的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试弄清楚如何连接到Azure SQL数据库.我知道,如果我在防火墙中放置一个IP地址,则可以连接,但是我们遇到的问题是,我们有几百个 网站,具有许多ip地址,我不想添加所有这些ip并维护这些ip.我还需要其他哪些选项来安全地建立数据库连接?我们是否可以创建一个要求任何连接使用MFA的策略, 但是odbc连接又如何呢?

I am trying to figure out how to connect to Azure SQL Databases. I know that if I put an ip address in the firewall, then I can connect, but the problem we have is that we have a couple hundred sites, with numerous ip addresses and I don’t want to have to add in all of those ip’s and also maintain those ips. What other options do I have to securely set up the database connections? Can we create a policy that would require any connections use MFA, but then what about odbc connections?

推荐答案

乔治,

您也可以使用IP范围.另一种选择是将Azure Active Directory身份验证与Azure SQL数据库一起使用,并将Active Directory集成身份验证与Encrypt = True一起使用.

You may also use IP ranges. Another option is to use Azure Active Directory Authentication with you Azure SQL Database, and use Active Directory integrated authentication with Encrypt=True.

连接字符串示例:

Connection String Example:

Server = tcp:<实例名称> .database.windows.net,1433;初始目录= AdventureWorksLT; Persist安全信息= False;用户ID = {your_username}; MultipleActiveResultSets = False; 加密= True ; TrustServerCertificate = False;身份验证=活动" 目录集成"; 

Server=tcp:<instance name>.database.windows.net,1433;Initial Catalog=AdventureWorksLT;Persist Security Info=False;User ID={your_username};MultipleActiveResultSets=False;Encrypt=True;TrustServerCertificate=False;Authentication="Active Directory Integrated"; 


这篇关于在没有防火墙的情况下安全地连接到Azure SQL数据库的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆