【问题标题】:How to get Monitoring data of Azure ARM Virtual Machine using .Net SDK如何使用 .Net SDK 获取 Azure ARM 虚拟机的监控数据
【发布时间】:2016-03-15 17:51:58
【问题描述】:

如何使用 .Net SDK 获取 Azure ARM 虚拟机的监控数据。

我尝试使用 Microsoft.Azure.Insights,但出现以下错误

“/”应用程序中的服务器错误。

        <h2> <i>Runtime Error</i> </h2></span>

        <font face="Arial, Helvetica, Geneva, SunSans-Regular, sans-serif ">

        <b> Description: </b>An application error occurred on the server. The current custom error settings for this application prevent the details of the application error from being viewed remotely (for security reasons). It could, however, be viewed by browsers running on the local server machine.
        <br><br>

        <b>Details:</b> To enable the details of this specific error message to be viewable on remote machines, please create a &lt;customErrors&gt; tag within a &quot;web.config&quot; configuration file located in the root directory of the current web application. This &lt;customErrors&gt; tag should then have its &quot;mode&quot; attribute set to &quot;Off&quot;.<br><br>

【问题讨论】:

    标签: azure azure-resource-manager azure-monitoring


    【解决方案1】:

    您可以使用 Microsoft Azure Insights Library 访问原始指标数据,其中包括一个统一的 API,用于检索 Azure 资源管理器中所有可用 Azure 资源的监控指标和操作事件。您可以参考MSDN Library - Microsoft.Azure.Insights了解更多信息。

    【讨论】:

    • 谢谢史蒂文。我也做了同样的事情,但是我收到了一些未知的 CloudException,它有问题已更新
    猜你喜欢
    • 1970-01-01
    • 2017-01-28
    • 2023-03-02
    • 2019-10-20
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2015-09-17
    • 1970-01-01
    相关资源
    最近更新 更多