Azure数据工厂存储事件触发器-访问blob的完整URL



是否有任何方法可以从ADF存储事件触发器访问完整的blob url?

文档说只有folderNamefilePath,但当我查看事件触发器的实际负载时(在Monitor->trigger Runs中(,我可以在那里看到完整的URL:

{
"topic": "/subscriptions/xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx/resourceGroups/xxx/providers/Microsoft.Storage/storageAccounts/xxx",
"subject": "/blobServices/default/containers/yyy/blobs/zzz.snappy.parquet",
"eventType": "Microsoft.Storage.BlobCreated",
"id": "xxx",
"data": {
"api": "PutBlob",
"contentType": "application/octet-stream",
"blobType": "BlockBlob",
"blobUrl": "https://xxx.blob.core.windows.net/yyy/zzz.snappy.parquet",
"url": "https://xxx.blob.core.windows.net/yyy/zzz.snappy.parquet"
},
"dataVersion": "",
"metadataVersion": "1",
"eventTime": "2021-06-09T23:00:00.0000000Z"
}

我试着遵循这篇文章的建议,查看了@{trigger()}的全部内容,但它只包含一个RunToken:

{
"headers": {
"Connection": "Keep-Alive",
"Host": "xxx.westus2.logic.azure.com",
"Content-Length": "975",
"Content-Type": "application/json; charset=utf-8"
},
"body": {
"RunToken": "long-string=="
}
}

我相信你从这个链接得到了@{trigger()}表达式https://learn.microsoft.com/en-us/answers/questions/46331/processing-azure-data-factory-event-trigger-proper.html.现在它不能工作了。正如您所说,您只能在triggerBody中获得RunToken。到目前为止,还并没有办法从事件触发器中获取文件的完整URL。

我们可以使用对象类型的管道参数来获取完整的url,并用"trigger((.outputs.body.event";它将以对象类型提供完整的url输出。https://learn.microsoft.com/en-us/answers/questions/46331/processing-azure-data-factory-event-trigger-proper

相关内容

  • 没有找到相关文章

最新更新