从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中搜索了几个小时。有什么建议吗?
答案 0 :(得分:0)
解决了。
df_resource = Factory(位置= self.location, identity = FactoryIdentity())
(在Python上)无法在线找到与此有关的任何内容,因此我在这里分享。
有效!