向EventGrid订阅添加高级筛选器时出现“资源应先存在”错误

2024-03-29 02:02:59 发布

您现在位置:Python中文网/ 问答频道 /正文

为什么会发生这种情况?我该如何应对

问题:

  • 现有基础设施
  • 由EventGrid触发的Python Azure函数
  • BlobUpload到存储帐户时创建的EventGrid消息
  • 为EventGrid订阅创建高级筛选器时,我收到错误:
Deploying Event Subscription: my-eventgrid-sub-name
Deployment has failed with the following error: 
{
    code:"Endpoint validation",
    message:"Destination azure endpoint not found,
    Resource details: resourceId:/subscriptions/<redacted>/resourceGroups/<redacted>/providers/Microsoft.Web/sites/myFunctionAppName/functions/myFunctionName. 
    Resource should pre-exist before attempting this operation,
    Activity id:7e9c4817-5bbd-4772-a7b0-a4dbc70dbf04, 
    timestamp: 10/24/2020 7:01:39 PM (UTC)."
}

enter image description here

当然myFucnctionName是存在的。它已经存在并运行了数周。似乎EventGrid无法“查看”该函数

编辑1:

  • 更新了上面的图片。我应该看到应用程序被停止了。我想这会影响添加EventGrid过滤器的能力
  • 启动应用程序,现在一切正常

Tags: 函数event应用程序消息错误基础设施情况帐户
1条回答
网友
1楼 · 发布于 2024-03-29 02:02:59

如错误消息-Resource should pre-exist before attempting this operation所述,此错误有两个潜在原因:

  • 您尚未创建事件网格触发函数应用程序,您正在该订阅中指向该应用程序
  • 未正确部署function app的工件,且function app不存在

相关问题 更多 >