![](/img/trans.png)
[英]creating Azure Data factory linked service using Managed identity with python
[英]How to set identity to managed for Azure Data Factory using Python SDK?
從文檔中我看到在生成具有托管標識的 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
我在文檔和 SO 上搜索了幾個小時有什么建議嗎?
解決了。
df_resource = Factory(location=self.location, identity=FactoryIdentity() )
在網上(對於 Python)找不到任何關於此的信息,所以我在這里分享。
作品!
聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.