Created
October 13, 2015 22:13
-
-
Save markcowl/4d389e673044c987149b to your computer and use it in GitHub Desktop.
Enable ADAL.Net tracing in PowerShell
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add-Type -Path '<path-to-powershell>\ResourceManager\AzureResourceManager\Resources\Microsoft.IdentityModel.Clients.ActiveDirectory.dll' | |
[Microsoft.IdentityModel.Clients.ActiveDirectory.AdalTrace]::TraceSource.Switch.Level = [System.Diagnostics.SourceLevels]::All | |
$listener = New-Object -TypeName System.Diagnostics.TextWriterTraceListener -ArgumentList "<full-path-to-trace-file>" | |
$listener.Writer.AutoFlush = $true | |
[Microsoft.IdentityModel.Clients.ActiveDirectory.AdalTrace]::TraceSource.Listeners.Add($listener) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment