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



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

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

最新更新