如何使用Python SDK将身份设置为Azure数据工厂的托管身份?

时间:2020-05-27 21:54:53

标签: python azure-sdk-python

the docs中,我看到在生成具有托管身份的Azure数据工厂时对.NET sdk的支持。但是,我找不到Python SDK的任何东西。这是我的一些尝试:

factoryID = new FactoryIdentity()
    df_obj = {
        'location': self.location,
        'identity': factoryID
        }

    df_resource = Factory(df_obj)

哪个返回语法错误:

 factoryID = new FactoryIdentity()
                               ^
 SyntaxError: invalid syntax

我也尝试过:

        df_resource = Factory(location=self.location, Identity = new FactoryIdentity())

哪个返回了相同的内容:

df_resource = Factory(location=self.location, Identity = new FactoryIdentity())
                                                                           ^
SyntaxError: invalid syntax

我已经在文档和S.O中搜索了几个小时。有什么建议吗?

1 个答案:

答案 0 :(得分:0)

解决了。

df_resource = Factory(位置= self.location, identity = FactoryIdentity()

(在Python上)无法在线找到与此有关的任何内容,因此我在这里分享。

有效!

相关问题