gpt4 book ai didi

azure - 如何从 Azure 数据工厂中的 Key Vault 获取/设置参数化连接字符串?

转载 作者:行者123 更新时间:2023-12-02 07:24:41 25 4
gpt4 key购买 nike

我在 Azure 数据工厂链接服务中有一个参数化连接字符串,如下所示:

Integrated Security=False;Encrypt=True;Connection Timeout=30;Data Source=xyz;User ID=admin;Password=password;Initial Catalog=@{linkedService().LSDBName};

数据库的值是在运行时从管道变量传递的。

我想将此连接字符串保存到 Azure Key Vault,但问题是从 Key Vault 读取值后,链接服务参数“LSDBName”不会动态替换为实际值,而是会尝试连接以“@{linkedService().LSDBName}”作为数据库名称。

是否有任何方法可以保护 key 保管库中的动态参数化连接字符串?或者实现这一目标的解决方法?

谢谢!

最佳答案

如果要将整个连接字符串存储在 Key Vault 中,则必须在“Server=myServerAddress;Database=myDataBase;User Id=myUsername;Password=myPassword;”中传递连接字符串。格式。为每个数据库创建单独的连接字符串,并将其存储在具有不同 secret 的 key 保管库中,然后在 ADF 中创建参数化链接服务,将这些 secret 作为参数提供。

关于azure - 如何从 Azure 数据工厂中的 Key Vault 获取/设置参数化连接字符串?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/57435025/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com