azure - MS Access App 从任何地方连接到 Azure Sql Db
问题描述
我创建了一个 MS Access 应用程序,它使用 Azure SQL Server 作为支持的 Db。Access 应用程序被设计为尽可能像 Web 应用程序一样运行,因为当用户处理特定记录时,没有任何内容存储在本地,也无法保存在 cookie 中。我已经在 Azure Db 防火墙中设置了主要办公室 IP,它在办公室时效果很好。
然而,希望允许用户在任何地方使用该工具,即他们的家、酒店、咖啡店等。我已经确定这不能直接在本地 Access 应用程序和 Azure SQL Db 之间完成(在基于我不能根据具体情况继续添加新的原始 IP)。
是否可以创建一个 Azure 应用服务或应用认证,MS Access 可以使用它来对 Azure 关闭订阅进行身份验证,然后通过它访问 Azure Db?
解决方案
问题在于您拥有动态 IP 地址,而这不一定仅限于家庭互联网连接 - 一些商业宽带提供商也使用动态 IP 地址。
如果我理解正确,您需要从具有动态 IP 地址的连接访问您的 SQL Azure 实例以进行调试或使用 SQL Management Studio,您需要为您的 ISP 使用的整个 IP 地址范围创建防火墙规则。如您所见,这会立即削弱使用 SQL Azure 带来的安全性。
如果您确实想为您的 ISP 添加整个 IP 地址范围,您需要:
1. Go to http://whatsmyip.org to get your current IP address assigned by your ISP.
2. Lookup the IP address range assigned to your ISP by using https://apps.db.ripe.net/search/query.html and entering the IP address from step 1.
3. Create a firewall rule using the start IP address and the end IP address from step 2.
我确实希望 Azure 团队将来会实施其他防火墙选项,例如基于 DNS 或 MAC 地址的访问规则。
这有帮助吗?
https://docs.microsoft.com/en-us/azure/sql-database/sql-database-firewall-configure
或这个?
https://docs.microsoft.com/en-us/azure/sql-database/sql-database-networkaccess-overview
最后..
推荐阅读
- android - 在屏幕上可见时从 RecyclerView 项访问数据
- html - 在 DocFX 概念文档中保留标签
- sql - 根据时间戳删除 BQ 中的旧重复行
- git - 为什么当我更改其中的 zip 文件时 git 挂起
- openssl - 我应该如何实现基于服务器的验证协议 (SCVP)?
- javascript - 如何在反应中折叠子组件中的手风琴
- unity3d - 即使在确保提供程序可用之后,EyeGazeProvider 仍为 null
- google-apps-script - 带有搜索和 JSON 数据的 IMPORTXML?
- c++ - 将原始指针指向 shared_ptr
- google-apps-script - 如何在附加组件的清单文件上写入