Gir*_*rya 2 azure webhooks azure-eventgrid
我无法在Azure事件网格中添加新的WebHook订阅。有人可以帮忙吗?添加webhook端点时出现以下错误。
{
"status": "Failed",
"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://webapplication120180427035159.azurewebsites.net/api/values?id=AMif5RXS+Bs0bgsbHnNP8RUcn8ZacH8ETUzHXZ5YlNM= failed. For more details, visit https://aka.ms/esvalidation."
}
]
}Run Code Online (Sandbox Code Playgroud)
在Azure事件网格中注册Webhook时,您的代码必须处理验证调用。您可以按照此示例显示如何接收验证码并回信以确保订阅者已正确注册。
目前,这是通过处理所有常规(非验证)事件的代码执行验证的唯一方法。
如果使用的是Azure Functions,则可以使用EventGridTrigger代替HttpTrigger。它将为您处理验证握手,而让Function仅关注“正常”事件。
| 归档时间: |
|
| 查看次数: |
2304 次 |
| 最近记录: |