Azure Logic应用-从Blob事件获取Blob内容
问题描述:
通过http:创建斑点时,我的逻辑应用程序会收到斑点事件.
My logic app receives a blob event when a blob is created via http:
我使用事件网格订阅,当Blob创建事件发生时,该订阅通过Webhook触发Logic App.
I use an Event Grid Subscription, which triggers the Logic App via webhook, when a Blob Created event occurs.
http触发器收到的典型blob事件如下:
A typical blob event received by the http trigger looks like:
[
{
"topic": "/subscriptions/xxxxxxx/resourceGroups/a-resource-group/providers/Microsoft.Storage/storageAccounts/ablobstorageaccount",
"subject": "/blobServices/default/containers/testcontainer/blobs/9de2125e-5279-4375-bc60-c9987eb99251",
"eventType": "Microsoft.Storage.BlobCreated",
"eventTime": "2018-12-07T12:42:53.6561593Z",
"id": "3c8f8611-001e-0029-722a-8eb18106aef2",
"data": {
"api": "PutBlob",
"clientRequestId": "799b46aa-ff9f-4561-a087-36f790ab0df5",
"requestId": "3c8f8611-001e-0029-722a-8eb181000000",
"eTag": "0x8D65C41819B23B9",
"contentType": "text/plain",
"contentLength": 22,
"blobType": "BlockBlob",
"url": "https://ablobstorageaccount.blob.core.windows.net/testcontainer/9de2125e-5279-4375-bc60-c9987eb99251",
"sequencer": "00000000000000000000000000003D5300000000018067c3",
"storageDiagnostics": {
"batchId": "be84f175-da20-4a44-8a8c-5d33a92fbcd3"
}
},
"dataVersion": "",
"metadataVersion": "1"
}
]
如何通过设计器的获取blob内容操作使用此事件数据指定blob内容?
How can I use this event data to specify the blob content, using the Designer's Get blob content action?
答
除了@dbarkol答案,以下屏幕截图还显示了使用路径获取blob内容,其中表达式为:>
In addition to @dbarkol answer, the following screen snippet shows using the Get blob content using path where an Expression is:
uriPath(triggerBody()?['data'].url)