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

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

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

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

  1. <?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和得到了预期的结果。

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

这是我的Pipeline JSON:

  1. {
  2. "name": "pipeline2",
  3. "properties": {
  4. "activities": [
  5. {
  6. "name": "Web1",
  7. "type": "WebActivity",
  8. "dependsOn": [],
  9. "policy": {
  10. "timeout": "0.12:00:00",
  11. "retry": 0,
  12. "retryIntervalInSeconds": 30,
  13. "secureOutput": false,
  14. "secureInput": false
  15. },
  16. "userProperties": [],
  17. "typeProperties": {
  18. "url": "https://<storage_account_name>.queue.core.windows.net/<message_queue_name>/messages<SAS>",
  19. "method": "GET",
  20. "headers": {
  21. "x-ms-date": {
  22. "value": "@{formatDateTime(utcnow(),'r')}",
  23. "type": "Expression"
  24. },
  25. "x-ms-version": "2020-04-08",
  26. "Content-Type": "application/json"
  27. }
  28. }
  29. }
  30. ],
  31. "annotations": []
  32. }
  33. }

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

输出

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

展开查看全部

相关问题