We referenced below link. https://learn.microsoft.com/en-us/powershell/partnercenter/overview?view=partnercenterps-3.0#other-microsoft-powershell-modules
And then, we execute below powershell command with our csp partner center account. But we got error on getting information of customer tenant.
Do we miss something? How can we resolve this issue?
Install-Module -Name PartnerCenter -AllowClobber -Scope AllUsers import-module PartnerCenter Get-Module Connect-PartnerCenter
#Connect-PartnerCenter -UseDeviceAuthentication #$credential = Get-Credential #Connect-PartnerCenter -Credential $credential -Tenant 'xxxxxxxxxxxx' -ServicePrincipal
Get-PartnerCustomer -domain 'xxxxx.onmicrosoft.com'
[error]
PS C:\Windows\system32> Get-PartnerCustomer -domain 'xxxxx.onmicrosoft.com' Get-PartnerCustomer : {"code":10001,"description":"Authentication failed. MFA required.","data":[],"source":"PartnerApiServiceControllers"} 위치 줄:1 문자:1
- Get-PartnerCustomer -domain 'xxxxxx.onmicrosoft.com'
-
+ CategoryInfo : CloseError: (:) [Get-PartnerCustomer], PartnerException + FullyQualifiedErrorId : Microsoft.Store.PartnerCenter.PowerShell.Commands.GetPartnerCustomer