英文:
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
时,这是我的输出:
访问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(
"https://<STORAGEACC>.dfs.core.windows.net/<CONTAINER>/<BLOB>.gz"
)
res=client.ingest_from_blob(blob_descriptor, ingestion_properties=ingestion_props)
When i run .show ingestion failures
, here is my output:
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).
通过集体智慧和协作来改善编程学习和解决问题的方式。致力于成为全球开发者共同参与的知识库,让每个人都能够通过互相帮助和分享经验来进步。
评论