gpt4 book ai didi

azure - 在发布函数之前,我可以创建 Azure 函数应用的事件网格订阅吗?

转载 作者:行者123 更新时间:2023-12-03 02:40:52 24 4
gpt4 key购买 nike

我一直在尝试使用 ARM 模板创建对事件网格触发器函数的事件网格订阅,该函数是为了捕获 Blob 存储事件而创建的。我首先成功创建了函数应用资源,然后尝试在创建的函数应用上创建事件网格订阅,但失败并出现以下错误:

    "error": {
"code": "ResourceDeploymentFailure",
"message": "The resource operation completed with terminal provisioning state 'Failed'.",
"details": [
{
"code": "Url validation",
"message": "The attempt to validate the provided endpoint https://myfunction.azurewebsites.net/runtime/webhooks/eventgrid failed. For more details, visit https://aka.ms/esvalidation."
}
]
}

这里我使用 webhook URL 作为端点。我知道有一个验证调用返回到函数应用程序以验证其存在。

我的问题是,在尝试为此创建事件网格订阅之前,我们是否需要将事件网格触发器函数发布到函数应用?

附注我还尝试了使用 AzureFunction 作为端点类型 ( 2020-01-01 version ) 的相同顺序,但仍然无法创建订阅。

最佳答案

基于描述的验证详细信息 here :

At the time of event subscription creation/update, Event Grid posts a subscription validation event to the target endpoint

作为解决方法,您可以使用虚拟(nop 操作)订阅者处理程序端点来创建订阅,然后使用真实订阅者处理程序端点更新 Webhook 端点。

关于azure - 在发布函数之前,我可以创建 Azure 函数应用的事件网格订阅吗?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/61365518/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com