It's very frustrating when code snippets don't work; can versions of libraries be specified if the regular improvements lead to incompatibilities (and I'm very supportive of deprecating ineffective legacy code)?
A couple of issues in the code snippet above:
''''
AuthenticationContext context = new AuthenticationContext(string.Format("https://login.windows.net/{0}/oauth2", tenantId));
ClientCredential clientCredentials = new ClientCredential(clientId, clientSecret);
AuthenticationResult authenticationResult = context.AcquireToken(resource, clientCredentials);
''''
The AuthenticationContext.AcquireToken doesn't seem to exist any more - been replaced by AcquireTokenAsync it seems.
Also it would be useful to know what type "resource" is in the deprecated method.
Given my inability to test the request parameters above, are these the only fields that can be used to filter event data i.e. the fields detailed in the Windows Defender ATP alert API fields page are not usable?
thanks
⚠Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.
@officedocsbot assign @e0i
Hi, thank you for your feedback. Checking with the engineering team.
Updates to the code snippet will be published by this afternoon. Closing.
Most helpful comment
Hi, thank you for your feedback. Checking with the engineering team.