Skip to content

Latest commit

 

History

History
18 lines (9 loc) · 615 Bytes

Add-PCAuthentication.md

File metadata and controls

18 lines (9 loc) · 615 Bytes

Partner Center PowerShell Module (preview)

Add-PCAuthentication

Set a global token for the script session - user authentication

$credential = Get-Credential

Add-PCAuthentication -cspappID '<native app id GUID>' -cspDomain '<csp partner domain>' -credential $credential

Set a global token for the script session - app authentication

$clientSecret = '<key code secret>'
$clientSecretSecure = $clientSecret | ConvertTo-SecureString -AsPlainText -Force

Add-PCAuthentication -cspappID '<native app id GUID>' -cspDomain '<csp partner domain>' -cspClientSecret $clientSecretSecure