azure-logic-apps - Azure Logic Apps - Get Blob content from Blob Event
问题描述
My logic app receives a blob event when a blob is created via http:
I use an Event Grid Subscription, which triggers the Logic App via webhook, when a Blob Created event occurs.
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"
}
]
How can I use this event data to specify the blob content, using the Designer's Get blob content action?
解决方案
推荐阅读
- gulp - 从 gulp v3 迁移到 v4 期间 gulp 构建出错
- visual-studio - 为什么在我重建相同的代码后,Visual Studio 远程调试器不会在断点处停止?
- google-bigquery - 在 BigQuery 视图定义中使用变量
- python - Python包没有在同一目录中看到模块
- python - 删除时的 django-dynamic-formset 问题
- html - 无法让 VSCode 建议 html 数据属性(data-rel、data-theme、data-position 等...)
- html - 为什么`border-collapse:collapse`会导致相邻单元格在未绘制时具有顶部边框
- tsql - 防止 Ctrl+Z 在 Script As->Alter View 之后删除 SSMS 中的最后一行
- javascript - javascript中的功能不可变方式根据项目的条件在某些位置复制带有附加项目的数组
- javascript - 如何在反应中使用带有 API 调用的 redux?