简体   繁体   English

从Azure群集访问本地网络共享

[英]Accessing on-premises network share from Azure cluster

There is a need of using on-premises file share from Azure Service Fabric cluster. 需要使用Azure Service Fabric群集中的本地文件共享。 Eg reading files from the share and saving some data to the same file share 例如,从共享中读取文件并将一些数据保存到同一文件共享中

To do that we are using impersonation mechanism (some unsafe code). 为此,我们使用模拟机制(一些不安全的代码)。 Using AD account we are able to access the share, but in case of failures with authentication the entire SF cluster goes down (not only the service with unhandled exception). 使用AD帐户,我们可以访问共享,但是在身份验证失败的情况下,整个SF群集将关闭(不仅是具有未处理异常的服务)。

The question is: is it really good practice to use SMB file shares like \\ipaddress\\folder\\folder1 from Azure? 问题是:使用Azure中的\\ ipaddress \\ folder \\ folder1之类的SMB文件共享真的是一种好习惯吗? Is there some workaround or better way of accessing these shares without impersonation? 是否有一些变通方法或更好的方式来访问这些共享而不进行模拟?

The plan-B is mounting the share on each Azure node, but I don't like it. 计划B正在每个Azure节点上安装共享,但是我不喜欢它。 Plan-C is a SFTP server at some on-premises server. Plan-C是某些本地服务器上的SFTP服务器。

Frankly, it is not a good idea to expose a corporate SMB fileshare over the Internet and many ISP's commonly block port 445 making it infeasible in most deployments. 坦率地说,在Internet上公开公司的SMB文件共享不是一个好主意,许多ISP通常会阻塞端口445,从而在大多数部署中都不可行。 A possible Azure solution would be to provision an ExpressRoute circuit to privately address the file share on-premises. 一种可能的Azure解决方案是提供ExpressRoute电路以私有方式解决本地文件共享。 This can be expensive and time consuming so you could also explore alternatives like migrating to a Blob or Azure Files store. 这可能既昂贵又耗时,因此您还可以探索替代方案,例如迁移到Blob或Azure文件存储。 An interim solution may be to push/pull data to a cloud storage solution. 临时解决方案可能是将数据推/拉到云存储解决方案。 The drawbacks are of course data duplication and extending the security perimeter of you data, as well as complexity. 缺点当然是数据复制和扩展数据的安全范围以及复杂性。 You would be well served to identify the on-premises data access patterns for the file share and see if you can fully migrate to a cloud data solution, keeping you data controlled and in once place, "close" to the SF cluster. 您将很容易识别文件共享的本地数据访问模式,并查看是否可以完全迁移到云数据解决方案,从而保持数据受控,并一次就近地接近SF群集。

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

相关问题 使用Azure上托管的Web应用程序访问本地SQL数据库 - Accessing on-premises SQL database with web application hosted on Azure 从本地IIS应用程序访问Azure Blob存储 - Access Azure Blob Storage from on-premises IIS application 我正在尝试使用 Windows 身份验证从我的 Azure 函数连接 SQL Server(本地) - I am trying to connect SQL Server(on-premises) from my Azure Function with windows authentication 使用 Azure Function 更新本地 AD 用户配置文件 - Update On-premises AD user profile using Azure Function Azure Key Vault - 检索本地加密的 RSA 公钥 - Azure Key Vault - retrieving RSA public key for on-premises encryption Azure Cloud Service主机本地应用程序服务器 - Azure Cloud Service host on-premises application server 用于本地 Web 应用的 Azure Application Insight 遥测 - Azure Application Insight Telemetry for On-Premises web app .NET本地部署? - .NET Batch on-premises? 通过Http范围请求快速检测GIF尺寸(本地部署,在Azure上失败) - Fast Detection of GIF Dimensions Via Http Range Requests (Works On-Premises, Fails on Azure) Azure中的WCF配置错误:无法识别的属性'protectTokens'。 在本地.NET 4环境中正常工作 - WCF config error in Azure: Unrecognized attribute 'protectTokens'. Works fine in on-premises .NET 4 environment
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM