繁体   English   中英

如何使用 azure 逻辑应用程序、function 应用程序从 azure 存储(文件共享或 BLOB)读取、写入、删除文件

[英]how to use azure logic apps, function aps to read, write, delete files from an azure storage(file share or BLOB)

我们考虑了一种解决方案,在该解决方案中,我们寻求使用在另一个 azure 订阅中运行的逻辑应用程序/功能应用程序从一个 azure 订阅(由一家公司拥有)中的文件共享读取和写入文件,该订阅由另一家公司拥有。 当前有关使用逻辑应用(使用连接器)连接到文件共享的指南 ( https://docs.microsoft.com/en-us/connectors/azurefile/ ) 提到了使用存储帐户密钥。

我们寻求以下问题的答案:

  1. 在不同 azure 订阅中运行的逻辑应用能否使用文件共享连接器连接到另一个订阅中的文件共享?
  2. 如果上面的 1 是“是”,是使用存储帐户密钥(属于另一个 azure 订阅中的存储帐户),逻辑应用对文件共享进行身份验证的唯一方法,还是可以使用 SAS 令牌代替? 我们对在公司外部共享存储帐户密钥(托管文件共享)持谨慎态度,尽管运行逻辑应用程序的另一家公司只是我们的客户。
  3. If SAS token can be used, either via a logic app connector or a function app or any other script/programmatic way (running in a different azure subscription) to connect to a file share (or even BLOB) in our azure subscription, can someone引导我们获得一些专家提供的任何可用文档/代码片段/指导?

非常感谢通过快速响应提供的任何帮助。

在不同 azure 订阅中运行的逻辑应用能否使用文件共享连接器连接到另一个订阅中的文件共享?

当然可以。

如果上面的 1 是“是”,是使用存储帐户密钥(属于另一个 azure 订阅中的存储帐户),逻辑应用对文件共享进行身份验证的唯一方法,还是可以使用 SAS 令牌代替? 我们对在公司外部共享存储帐户密钥(托管文件共享)持谨慎态度,尽管运行逻辑应用程序的另一家公司只是我们的客户。

存储帐户密钥不是唯一的方法。 SAS 令牌也可以使用。

既然您提到了 powershell 标签,我将给出 powershell 参考(其他语言类似。)。

使用 SAS 令牌创建上下文

If SAS token can be used, either via a logic app connector or a function app or any other script/programmatic way (running in a different azure subscription) to connect to a file share (or even BLOB) in our azure subscription, can someone引导我们获得一些专家提供的任何可用文档/代码片段/指导?

检查以下链接:

获取 AzStorageBlobContent

设置 AzStorageBlobContent

删除-AzStorageBlob

获取 AzStorageFileContent

设置 AzStorageFileContent

删除-AzStorageFile

暂无
暂无

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

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM