Azure资源运行状况REST API响应运行状况与Web应用程序资源类型的门户结果不一致

时间:2015-11-19 13:20:19

标签: azure-resource-manager azure-management-api

当我使用Azure资源管理REST API发送GET请求以获取特定订阅ID下的所有资源的资源运行状况时,如下所示:

https://management.azure.com/subscriptions/subscriptionId/providers/Microsoft.ResourceHealth/availabilityStatuses?api-version=2015-01-01

我收到如下答复:

   {
      "id": "/subscriptions/<subscriptionId>/resourceGroups/<resGrp-name>/providers/Microsoft.Web/sites/<webAppName>/providers/Microsoft.ResourceHealth/availabilityStatuses/current",
      "name": "<webAppName>",
      "type": "Microsoft.ResourceHealth/AvailabilityStatuses",
      "location": "northeurope",
      "properties": {
        "availabilityState": "Unknown",
        "summary": "We are sorry, we are unable to report the health of your Web App",
        "reasonChronicity": "Persistent",
        "recommendedActions": [
          {
            "action": "Continue to monitor this page for updated status",
            "actionUrl": "",
            "actionUrlText": ""
          }
        ],
        "detailedStatus": "No health activity detected on your Azure Web App in past 10 minutes.",
        "occuredTime": "2015-11-18T23:54:59.543Z"
      }
    }

如上所示,特定网络应用的可用性状态为&#34; 未知&#34;。

但是,在Azure门户中,此Web应用程序被故意暂停超过15分钟,以检查REST API响应是否与门户网站中的实际状态一致,预计将返回&#34;已停止&#34 34;而不是&#34;未知&#34;。

有没有人遇到类似行为或对此有任何想法?该结果可以在相同的意外可用性状态下始终如一地重现。

非常感谢。

1 个答案:

答案 0 :(得分:0)

请阅读此博客,了解“未知”状态的含义。 https://azure.microsoft.com/en-in/blog/reduce-troubleshooting-time-with-azure-resource-health/

您已经提到过您的资源在15分钟前被访问以暂停网络应用。请仔细阅读

部分
  

“要记住信号延迟和其他重要事项”

如果最近10分钟未访问您的资源,则其状态将变为未知。

您可以尝试使用Azure service management APIs检查应用的状态。

希望这有帮助。

相关问题