microsoft / Partner-Center-PowerShell

PowerShell module for managing Partner Center resources.
https://docs.microsoft.com/powershell/partnercenter/
MIT License
132 stars 60 forks source link

Connecting to partner portal results in "Connect-PartnerCenter : AADSTS90013: Invalid input received from the user." #395

Open Marcel-Balk opened 2 years ago

Marcel-Balk commented 2 years ago

Steps to reproduce

$appId = 'XXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXXX' $SecretKEY = "XXXXX~XXXXXXXXXXXXXXXXXXXXXXX~XXXXXXX" $secret = ConvertTo-SecureString $SecretKEY -AsPlainText -Force $refreshToken = ''

$credential = New-Object System.Management.Automation.PSCredential($appId, $secret)

Connect-PartnerCenter -ApplicationId $appId -Credential $credential -RefreshToken $refreshToken

$Customers=get-partnercustomer

Expected behavior

Correct connection to Partner portal

Actual behavior

Connect-PartnerCenter : AADSTS90013: Invalid input received from the user. Trace ID: 3e01a8ea-34b6-4865-9d86-2a97fbd41e00 Correlation ID: 5d31376e-7a21-45b7-a894-fef31c02bc3a Timestamp: 2022-05-13 08:19:34Z At C:\Users\XXXXX\Desktop\PARTNER-PORTAL2.ps1:7 char:1

Diagnostic logs

no logs available.

Environment

Powershell: 5.1.22000.653 Windows: Windows 11, 21H2, 22000..675 .NET Framework 4.8.04161

Marcel-Balk commented 2 years ago

Can we get a response on this ?