【问题标题】:Create an EventGrid subscription to a STANDARD logic app创建对 STANDARD 逻辑应用的 EventGrid 订阅
【发布时间】:2021-12-10 23:06:55
【问题描述】:

我主要想创建一个使用此触发器的标准逻辑应用程序:When a resource event occurs:

我希望能够通过 ARM 创建这个逻辑应用。我为逻辑应用、工作流、API 连接和事件网格订阅添加了模板。但我收到此错误:

##[error]Url validation: Webhook validation handshake failed for https://myLogicApp.azurewebsites.net/runtime/webhooks/workflow/scaleUnits/prod-00/workflows/9382f38a3bc54b528e50dcc4351cd665/triggers/When_a_resource_event_occurs/paths/invoke. Http POST request retuned 2XX response with response body . When a validation request is accepted without validation code in the response body, Http GET is expected on the validation url included in the validation event(within 10 minutes).

因此,我尝试通过手动复制工作流 url 并将其粘贴在 webhook 端点 url 下(我需要填写以手动创建订阅)在门户中手动创建 eventgrid 订阅。 但是,这也不起作用。我遇到了一个非常相似的错误:

我执行上一步只是作为调试步骤。我知道如果我在工作流中手动创建触发器,问题将得到解决,订阅将单独创建(或由 Azure 后端系统创建)。

那么,有没有人用标准逻辑应用解决了这个问题?你知道如何解决这个问题吗?

我的意思是如何创建连接到标准逻辑应用的事件网格订阅 ARM 模板??

【问题讨论】:

    标签: azure azure-logic-apps azure-resource-manager azure-eventgrid azure-logic-app-standard


    【解决方案1】:

    在创建事件订阅期间,如果您看到The attempt to validate the provided endpoint https://your-endpoint-here failed. For more details, visit https://aka.ms/esvalidation 等错误消息,则表明验证握手失败。要解决此错误,请验证以下方面:

    • 使用 Postman 或 curl 或类似工具使用 sample SubscriptionValidationEvent 请求正文向您的 webhook url 执行 HTTP POST。

    • 如果您的 webhook 正在实现同步验证握手机制,请验证 ValidationCode 是否作为响应的一部分返回。

    • 如果您的 webhook 正在实现异步验证握手机制,请确认您是 HTTP POST 返回 200 OK。

    您可以参考Troubleshoot Azure Event Grid subscription validations Cannot create event grid topc subscription based on workflow url - handshake fail Endpoint validation with Event Grid eventsImplementing Azure Logic Apps - When a resource event occurs

    您也可以在 GitHub 上打开问题:Azure/logicapps

    【讨论】:

      猜你喜欢
      • 2019-06-25
      • 2019-06-08
      • 1970-01-01
      • 1970-01-01
      • 2012-01-26
      • 1970-01-01
      • 1970-01-01
      • 1970-01-01
      • 2019-07-16
      相关资源
      最近更新 更多