Home

Query log analytics api in PPE environment

%3CLINGO-SUB%20id%3D%22lingo-sub-221916%22%20slang%3D%22en-US%22%3EQuery%20log%20analytics%20api%20in%20PPE%20environment%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-221916%22%20slang%3D%22en-US%22%3E%3CP%3EI'm%20trying%20to%20access%20to%20log%20analytics%20API%20in%20PPE%20environment%20-%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fapi.int.loganalytics.io%2F%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fapi.int.loganalytics.io%3C%2FA%3E.%3C%2FP%3E%0A%3CP%3EI%20followed%20the%20steps%20in%20the%20documentation%20-%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdev.loganalytics.io%2Fdocumentation%2FTools%2FCSharp-Sdk%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdev.loganalytics.io%2Fdocumentation%2FTools%2FCSharp-Sdk%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EIt%20works%20for%20me%20in%20the%20production%20environment%2C%20but%20in%20INT%20environment%20I'm%20getting%20this%20error%3A%20%22AADSTS65001%3A%20The%20user%20or%20administrator%20has%20not%20consented%20to%20use%20the%20application%20with%20ID%20'ca7f3f0b-7d91-482c-8e09-c5d840d0eac5'%20named%20'Log%20Analytics%20API'.%20Send%20an%20interactive%20authorization%20request%20for%20this%20user%20and%20resource.%5Cr%5CnTrace%20ID%3A%207460168c-c688-4380-bb8f-e70d2bd30400%5Cr%5CnCorrelation%20ID%3A%20669a4ef1-4aa3-4864-afb1-1b159770a3c6%5Cr%5CnTimestamp%3A%202018-07-31%2015%3A23%3A03Z%22%3C%2FP%3E%0A%3CP%3EI%20have%20granted%20the%20permissions%20to%20log%20analytics%20API%20as%20described%20here%20-%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CA%20href%3D%22https%3A%2F%2Fdev.loganalytics.io%2Fdocumentation%2FAuthorization%2FAAD-Setup%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noreferrer%20noopener%20noreferrer%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fdev.loganalytics.io%2Fdocumentation%2FAuthorization%2FAAD-Setup%3C%2FA%3E%3C%2FP%3E%0A%3CP%3EAny%20ideas%20what%20could%20be%20wrong%3F%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-LABS%20id%3D%22lingo-labs-221916%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%20Log%20Analytics%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Dolev Cohen
Microsoft

I'm trying to access to log analytics API in PPE environment - https://api.int.loganalytics.io.

I followed the steps in the documentation - https://dev.loganalytics.io/documentation/Tools/CSharp-Sdk

It works for me in the production environment, but in INT environment I'm getting this error: "AADSTS65001: The user or administrator has not consented to use the application with ID 'ca7f3f0b-7d91-482c-8e09-c5d840d0eac5' named 'Log Analytics API'. Send an interactive authorization request for this user and resource.\r\nTrace ID: 7460168c-c688-4380-bb8f-e70d2bd30400\r\nCorrelation ID: 669a4ef1-4aa3-4864-afb1-1b159770a3c6\r\nTimestamp: 2018-07-31 15:23:03Z"

I have granted the permissions to log analytics API as described here - https://dev.loganalytics.io/documentation/Authorization/AAD-Setup

Any ideas what could be wrong?