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

How to get Monitoring data of Azure ARM Virtual Machine using .Net SDK

如何使用.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>

您可以使用 Microsoft Azure Insights Library which includes a unified API to retrieve monitoring metrics and operational events for all of the Azure resources that are available in Azure Resource Manager. And you can refer to MSDN Library - Microsoft.Azure.Insights 访问原始指标数据以获取更多信息。