如何解决在Linux上托管的Azure Function Core创建事件网格订阅时出错的问题?

时间:2019-01-16 02:18:54

标签: azure azure-functions azure-eventgrid azure-functions-core-tools

我有一个在WestUS中运行的Linux使用计划上运行的Azure Function Core。该函数似乎运行正常-我在Azure中具有相同功能的.NET Standard 2.0先前版本,该函数在OK中运行正常。但是,当我尝试创建事件网格主题的订阅时,出现以下错误:

  

部署失败,出现以下错误:{“代码”:“ URL验证”,“消息”:“”尝试验证提供的端点https://insysfunctiongetweathercore.azurewebsites.net/runtime/webhooks/EventGrid失败。有关更多详细信息,请访问https://aka.ms/esvalidation 。”}

我正在使用EventGridTrigger,因此不必做任何处理来验证-这应该应该自动发生:

public static async Task Run([EventGridTrigger] EventGridEvent eventGridEvent, ILogger log)

关于在Linux使用计划中托管该功能时我可能需要做些什么的任何想法?

编辑

这是“创建事件订阅表单”的屏幕截图,其中包含错误:

enter image description here

以及生成的JSON:

{
"name": "InSysWeatherPull",
"properties": {
    "topic": "/subscriptions/xxxxxxxxxxx/resourceGroups/InergySystemsWest/providers/Microsoft.EventGrid/Topics/InSysEventGridWest",
    "destination": {
        "endpointType": "WebHook",
        "properties": {
            "endpointUrl": "https://insysfunctiongetweathercore.azurewebsites.net/runtime/webhooks/EventGrid?functionName=ProcessWeatherRequest&code=xxxxxxxxxxxx"
        }
    },
    "filter": {
        "includedEventTypes": [
            "weather-zip-request"
        ],
        "advancedFilters": []
    },
    "labels": [],
    "eventDeliverySchema": "EventGridSchema"
}

}

0 个答案:

没有答案