Incompatible parameter sets in Open-AADIntOffice365Portal
cnotin opened this issue · comments
Clément Notin commented
Let's try this example:
AADInternals/FederatedIdentityTools.ps1
Line 539 in 0fa2edf
which fails with this error:
PS > Open-AADIntOffice365Portal -ImmutableId "Ah2J42BsPUOBoUcsCYn7vA==" -Issuer "http://mysts.company.com/adfs/ls" -PfxFileName "MyCert.pfx" -PfxPassword "mypassword"
Open-AADIntOffice365Portal : Parameter set cannot be resolved using the specified named parameters.
At line:1 char:1
+ Open-AADIntOffice365Portal -ImmutableId "Ah2J42BsPUOBoUcsCYn7vA==" -I ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
+ CategoryInfo : InvalidArgument: (:) [Open-AADIntOffice365Portal], ParameterBindingException
+ FullyQualifiedErrorId : AmbiguousParameterSet,Open-AADIntOffice365Portal
I believe the issue comes from the fact that $Issuer
was added in 0.9.3 to the UseAnySTS
parameter set:
ff0d29f#diff-46d55b4251af89e9ccb6780ad126da4295e254438fa446fdc1fc791f2ce8e027R569
I think it's an error since -Issuer
should be able to be used with other arguments to pass certif info