Skip to content
Jiri Formacek edited this page Dec 30, 2024 · 1 revision

Module can be used behind the proxy. Sample below shows how to configure proxy support explicitly.

$proxy = 'http://myproxy.mycompany.com'
$port = '8080'

$proxy = new-object System.Net.WebProxy("$proxy`:$port")
$proxy.UseDefaultCredentials = $true

New-AadAuthenticationFactory `
    -TenantId 'mytenant.com' `
    -DefaultScopes 'https://graph.microsoft.com/.default' `
    -AuthMode WAM `
    -Proxy $proxy

Get-AadToken
Clone this wiki locally