liarjo / azuremetricsample Goto Github PK
View Code? Open in Web Editor NEWVM metrics using Azure Insights REST API.
License: MIT License
VM metrics using Azure Insights REST API.
License: MIT License
I got the error
`E:\Git\GitHub\AzureMetricSample\AzureMetricSample\SampleMetricConsole\bin\Debug>SampleMetricConsole.exe
My Token is:
Unhandled Exception: Microsoft.IdentityModel.Clients.ActiveDirectory.AdalServiceException: AADSTS50034: To sign into this application the account must be added to the xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxxx directory.
Trace ID: f88727b7-10bd-49f1-9f7d-24772f02b055
Correlation ID: d1ac9987-1f94-49ce-a5b3-b145a1c0c94a
Timestamp: 2017-02-23 15:19:11Z ---> System.Net.WebException: The remote server returned an error: (400) Bad Request.
at System.Net.HttpWebRequest.GetResponse()
at Microsoft.IdentityModel.Clients.ActiveDirectory.HttpWebRequestWrapper.d__2.MoveNext()
--- End of stack trace from previous location where exception was thrown ---
at System.Runtime.CompilerServices.TaskAwaiter.ThrowForNonSuccess(Task task)
at System.Runtime.CompilerServices.TaskAwaiter.HandleNonSuccessAndDebuggerNotification(Task task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.HttpHelper.d__01.MoveNext() --- End of inner exception stack trace --- at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.RunAsyncTask[T](Task
1 task)
at Microsoft.IdentityModel.Clients.ActiveDirectory.AuthenticationContext.AcquireToken(String resource, String clientId, UserCredential userCredential)
at SampleMetricConsole.MetricProvider.GetAuthorizationHeaderSilent() in E:\Git\GitHub\AzureMetricSample\AzureMetricSample\SampleMetricConsole\MetricProvider.cs:line 47
at SampleMetricConsole.Program.Main(String[] args) in E:\Git\GitHub\AzureMetricSample\AzureMetricSample\SampleMetricConsole\Program.cs:line 85`
what i do wrong?
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.