访问 Kusto Python SDK 中的 Blob 需要哪些权限?

huangapple go评论51阅读模式
英文:

What are the permissions needed to access blob from Kusto Python SDK?

问题

我正在尝试使用Python SDK将ADLS gen 2中的附加Blob导入到ADX中。

以下是代码的一部分:

blob_descriptor = BlobDescriptor(
    "https://<STORAGEACC>.dfs.core.windows.net/<CONTAINER>/<BLOB>.gz"
)
res=client.ingest_from_blob(blob_descriptor, ingestion_properties=ingestion_props)

当我运行.show ingestion failures时,这是我的输出:

访问 Kusto Python SDK 中的 Blob 需要哪些权限?
访问 Kusto Python SDK 中的 Blob 需要哪些权限?

访问Blob所需的权限是什么?这些权限是应该在Blob级别授予我的Azure Data Explorer集群还是运行Python脚本的客户端?
(另外,我已经授予ADX集群“Storage Blob Data Contributor”权限,也授予了自己的权限(因为客户端当前正在使用with_aad_device_authentication()进行测试)。

英文:

I am trying to ingest an append blob in ADLS gen 2 to ADX with the Python SDK.

Here is a snippet of the code:

blob_descriptor = BlobDescriptor(
    &quot;https://&lt;STORAGEACC&gt;.dfs.core.windows.net/&lt;CONTAINER&gt;/&lt;BLOB&gt;.gz&quot;
)
res=client.ingest_from_blob(blob_descriptor, ingestion_properties=ingestion_props)

When i run .show ingestion failures, here is my output:
访问 Kusto Python SDK 中的 Blob 需要哪些权限?
访问 Kusto Python SDK 中的 Blob 需要哪些权限?

What permissions are required to access the blob? And are the permissions to be granted at the blob level to my Azure Data Explorer cluster or to the client running the python script?
(Also, I have given the ADX Cluster 'Storage Blob Data Contributor' permissions and also to myself (since the client is currently being tested with with_aad_device_authentication() )

答案1

得分: 1

如在sample code中所示,blob的URL应包括存储凭据(例如SAS)。

参见:存储连接字符串

英文:

as can be seen in the sample code, the URL to the blob should include storage credentials (for example, a SAS).

See: Storage connection strings

huangapple
  • 本文由 发表于 2023年7月28日 01:48:47
  • 转载请务必保留本文链接:https://go.coder-hub.com/76782289.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定