从Azure数据工厂Web活动获取Azure Blob队列消息

ezykj2lf  于 2023-06-24  发布在  其他
关注(0)|答案(1)|浏览(115)

我正在尝试使用Azure Web Activity从Azure Blob存储获取队列消息。然后将解析该消息以获得在数据管道的后续部分中需要的参数。

我正在尝试使用SAS进行连接,但不断收到

<?xml version="1.0" encoding="utf-8"?><Error><Code>UnsupportedHttpVerb</Code><Message>The resource doesn't support specified Http Verb.

这里的my设置有什么问题?我已经阅读了Azure文档,但似乎找不到任何解决方案。谢谢你。

46scxncf

46scxncf1#

我尝试了下面的URL使用SAS和得到了预期的结果。

https://<storage_account_name>.queue.core.windows.net/<message_queue_name>/messages<SAS>

这是我的Pipeline JSON:

{
    "name": "pipeline2",
    "properties": {
        "activities": [
            {
                "name": "Web1",
                "type": "WebActivity",
                "dependsOn": [],
                "policy": {
                    "timeout": "0.12:00:00",
                    "retry": 0,
                    "retryIntervalInSeconds": 30,
                    "secureOutput": false,
                    "secureInput": false
                },
                "userProperties": [],
                "typeProperties": {
                    "url": "https://<storage_account_name>.queue.core.windows.net/<message_queue_name>/messages<SAS>",
                    "method": "GET",
                    "headers": {
                        "x-ms-date": {
                            "value": "@{formatDateTime(utcnow(),'r')}",
                            "type": "Expression"
                        },
                        "x-ms-version": "2020-04-08",
                        "Content-Type": "application/json"
                    }
                }
            }
        ],
        "annotations": []
    }
}

如果您在队列中选中下面的复选标记,您将在Web Activity输出中获得Encrypted消息正文。

输出

取消选中它,您可以看到,我在Web活动输出中得到了消息正文。

相关问题