我正在使用 .NET 和 Azure 数据工厂的 SqlServerLinkedService
开发 ETL 解决方案,作为从本地 SQL Server 到 Azure 的数据移动的一部分。
我无法设置密码属性,因为它的类型为 SecretBase
,没有任何属性/构造函数:
有人知道如何设置这个属性吗?
下面是我的代码:
最佳答案
奇怪的是,这似乎只在 the Azure Python docs 中得到解释。
SecretBase class
The base definition of a secret type.
You probably want to use the sub-classes and not this class directly. Known sub-classes are: SecureString, AzureKeyVaultSecretReference
所以你可以使用Azure SecureString implementation设置该值,因为它继承自 SecretBase
。
关于c# - 无法将类型 'string' 隐式转换为 'Microsoft.Azure.Management.DataFactory.Models.SecretBase',我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/55829314/