question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

New-PartnerAccessToken : Parameter set cannot be resolved using the specified named parameters.

See original GitHub issue

Steps to reproduce

   $AccessToken = New-PartnerAccessToken -Credential $Credentials -Resource $Resource -TenantId $TenantId -RefreshToken $SPNRefreshToken

Expected behavior

Should return AccessToken

Actual behavior

New-PartnerAccessToken : Parameter set cannot be resolved using the specified named parameters.
At line:1 char:24
+ ... cessToken = New-PartnerAccessToken -Credential $Credentials -Resource ...
+                 ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [New-PartnerAccessToken], ParameterBindingException
    + FullyQualifiedErrorId : AmbiguousParameterSet,Microsoft.Store.PartnerCenter.PowerShell.Commands.NewPartnerAccessToken
PS C:\Users\testuser> Get-Module PartnerCenter

ModuleType Version    Name                                ExportedCommands                                                                           
---------- -------    ----                                ----------------                                                                           
Script     2.0.1909.1 PartnerCenter                       {Add-PartnerCustomerCartLineItem, Add-PartnerCustomerUserRoleMember, Connect-PartnerCent...

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:30 (8 by maintainers)

github_iconTop GitHub Comments

2reactions
cblackukcommented, Sep 14, 2019

Exactly… but instead in typical fashion, everything is broken and documentation does not reflect the actual state of affairs… Please fix it guys…

1reaction
ghostcommented, Sep 15, 2019

@chwilfing one of the things that Connect-PartnerCenter does is attempt to configure a country property based on the reseller profile. If the command is not able to get the profile it will leave that value blank, which I believe is the root cause for your issue with the Get-PartnerOffers command. I will look into that, but if this is an issue for you please open a new issue so we can track everything.

Read more comments on GitHub >

github_iconTop Results From Across the Web

New-PartnerAccessToken with -Environment AzureCloud ...
New-PartnerAccessToken : Parameter set cannot be resolved using the specified named parameters. At line:1 char:10.
Read more >
Fix "Parameter set cannot be resolved using the specified ...
Root Cause: This error occurs when PowerShell is unable to determine which parameter set to use due to ambiguity, missing parameters, or ...
Read more >
Parameter set cannot be resolved using the specified ...
If I use one of those parameters I get the below error: Parameter set cannot be resolved using the specified named parameters.
Read more >
Invoke-Command error "Parameter set cannot be resolved ...
The error you have is because -credential without -computername can't exist. You can try this way: Invoke-Command -Credential $migratorCreds ...
Read more >
Startup: Parameter set cannot be resolved using the ...
Hi, I am fighting with this one error that I can seem to figure out with New-UDGrid. This was working in UniversalDashboard but...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found