New-PartnerAccessToken : Parameter set cannot be resolved using the specified named parameters.
See original GitHub issueSteps 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:
- Created 4 years ago
- Comments:30 (8 by maintainers)
Top 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 >
Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free
Top Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Exactly… but instead in typical fashion, everything is broken and documentation does not reflect the actual state of affairs… Please fix it guys…
@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 theGet-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.