Gerenios / AADInternals

AADInternals PowerShell module for administering Azure AD and Office 365

Home Page:http://aadinternals.com/aadinternals

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Incompatible parameter sets in Open-AADIntOffice365Portal

cnotin opened this issue · comments

Let's try this example:

PS C:\>Open-AADIntOffice365Portal -ImmutableId "Ah2J42BsPUOBoUcsCYn7vA==" -Issuer "http://mysts.company.com/adfs/ls" -PfxFileName "MyCert.pfx" -PfxPassword -Password "mypassword"

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