2016-03-14 24 views
0

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

回答

1

您可以用Microsoft Azure Insights Library其中包括一個統一的API來獲取監控指標和業務事件爲所有在Azure的資源管理器提供的Azure的資源訪問原始度量數據。你可以參考MSDN Library - Microsoft.Azure.Insights瞭解更多信息。

+0

謝謝史蒂文。我也這樣做了,但是我收到了一些未知的CloudException,這些CloudException已更新 – Tejas

相關問題