I am pretty new to Azure. Following is the task I am trying to achieve:
I wanted to consume Azure Monitor Rest API from .Net application using C# code and wanted to display few metrics(any couple of metrics) on the web page(I am using ASP.Net).
For this, I created Azure AD, got the subscription ID, Tenant ID, Client Secret and Client ID from Azure portal. All that I have to do is from .Net end, which is balance and I couldn't find proper resources to achieve this task.
Can someone help me out in this?
MetricDefinitions web point. Detailed documentation is here.Metrics endpoint. Documentation link is here. For both cases you need to use MonitorClient object from Microsoft.Azure.Management.Monitor nuget package.
You can review good examples how to extract metrics here(extract one-dimension metrics) and here(extract multi-dimension metrics).
Also follow up to couple helpful links:
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With