question

dntiamoahltsa avatar image
0 Votes"
dntiamoahltsa asked LeilaKong-MSFT answered

New-PartnerAccessToken with -Environment AzureCloud throws Parameter cannot be resolved error in Powershell Azure CLI

PS C:\WINDOWS\system32> $token = New-PartnerAccessToken -ApplicationId <a[[lication-d> -Consent -Environment AzureCloud -Resource https://api.partnercenter.microsoft.com
New-PartnerAccessToken : Parameter set cannot be resolved using the specified named parameters.
At line:1 char:10
+ $token = New-PartnerAccessToken -ApplicationId 7bd3d7ff-f685-4165-a9c ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [New-PartnerAccessToken], ParameterBindingException
+ FullyQualifiedErrorId : AmbiguousParameterSet,Microsoft.Store.PartnerCenter.PowerShell.Commands.NewPartnerAccessToken

windows-server-powershell
5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LeilaKong-MSFT avatar image
0 Votes"
LeilaKong-MSFT answered

Hello @dntiamoahltsa ,

Thanks for your query.

What's the version of your PartnerCenter Module? This issue have been resolved with version 2.0.1909.2. Please check the following reference:
https://github.com/microsoft/Partner-Center-PowerShell/issues/153


Best regards,
Leila


If the Answer is helpful, please click "Accept Answer" and upvote it.

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

LeilaKong-MSFT avatar image
0 Votes"
LeilaKong-MSFT answered

Hello @dntiamoahltsa ,

We haven’t heard from you for a long time. Is everything going on well with your side?

5 |1600 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.