Logic App

时间:2017-10-05 13:54:57

标签: azure azure-logic-apps azure-eventgrid

我已根据教程here添加了触发器。当我保存并尝试运行触发器时,会导致失败。如果我查看历史记录中的OUTPUTS LINK,它会有以下内容:

{
"statusCode": 400,
"headers": {
    "Pragma": "no-cache",
    "x-ms-ratelimit-remaining-subscription-writes": "1197",
    "x-ms-request-id": "87dc2cc6-0894-4d2c-955d-22d922673139",
    "x-ms-correlation-request-id": "87dc2cc6-0894-4d2c-955d-22d922673139",
    "x-ms-routing-request-id": "WESTUS:20171005T133404Z:87dc2cc6-0894-4d2c-955d-22d922673139",
    "Strict-Transport-Security": "max-age=31536000; includeSubDomains",
    "Timing-Allow-Origin": "*",
    "Cache-Control": "no-cache",
    "Date": "Thu, 05 Oct 2017 13:34:04 GMT",
    "Location": "https://logic-apis-westus.azure-apim.net/apim/azureeventgrid/65eea0596ae646bea4bbea2060aa2faa/eventSubscription/unsubscribe?x-ms-api-version=2017-06-15-preview&resource=%2Fsubscriptions%2F9c09809e-3d3b-4987-84f4-3d26f4eec628%2FresourceGroups%2FDSDev%2Fproviders%2FMicrosoft.EventGrid%2FeventSubscriptions%2FLogicApp3692dffd-19cb-49d4-836d-a54ca4a6ca22",
    "Content-Length": "25",
    "Content-Type": "application/json",
    "Expires": "-1"
},
"body": "Model state is invalid."

}

我确实只添加了触发器,所以不确定什么可能无效?

由于

亚历

1 个答案:

答案 0 :(得分:0)

这是您第一次保存此类Logic App吗?因为触发器是一个webhook触发器,所以每次修改它时,在保存时,引擎都会取消订阅旧事件并订阅新事件。如果逻辑应用程序中指定的旧事件无效(例如,您输入了不存在的资源名称),则取消订阅将失败。但即便如此,如果新信息有效,订阅仍应有效。您可以通过触发事件来验证它并验证逻辑应用程序是否已被触发。