0

我正在尝试使用参考上述链接的 rest api 创建事件订阅。

https://docs.microsoft.com/en-us/rest/api/eventgrid/version2019-06-01/eventsubscriptions/createorupdate#eventsubscriptionprovisioningstate

它确实将“provisioningState”显示为“正在创建”,并且有一段时间我还可以在门户网站上看到它正在创建但几分钟后它显示。

写入订阅 - 在门户网站上失败并且订阅消失。并且可以看到下面的日志

 "properties": {
        "statusMessage": "{\"status\":\"Failed\",\"error\":{\"code\":\"ResourceOperationFailure\",\"message\":\"The resource operation completed with terminal provisioning state 'Failed'.\",\"details\":[{\"code\":\"Internal error\",\"message\":\"The operation failed due to an internal server error. The initial state of the impacted resources (if any) are restored. Please try again in few minutes. If error still persists, report XXXXXXXXXXXXXX:5/17/2020 11:51:09 AM (UTC) to our forums for assistance or raise a support ticket .\"}]}}"
    }

但我可以从门户创建。只有 API 有问题。

4

0 回答 0