title: How can I create an ADFS relying party with an additional SAML endpoint using PowerShell?
body: <p>I want to create an ADFS relying party with an additional SAML endpoint using:</p>
  
  <pre><code>$SamlEndpoint = New-AdfsSamlEndpoint `
      -Binding "POST" `
      -Protocol "SAMLSingleSignOn" `
      -Uri "https://$AdditionalUrl/plugins/servlet/samlsso/metadata$SingleLogout"
  
  Add-AdfsRelyingPartyTrust `
      -Name "$Name" `
      -MetadataUrl "https://$AppHost.lab.example.com/plugins/servlet/samlsso/metadata$SingleLogout" `
      -SamlEndpoint $SamlEndpoint `
      -AccessControlPolicyName "Permit Everyone" `
      -MonitoringEnabled $true `
      -AutoUpdateEnabled $true `
      -IssuanceTransformRules $IssuanceRules
  </code></pre>
  
  <p>Without the parameter <code>-SamlEndpoint ...</code> the script works fine. With I get the error message:</p>
  
  <blockquote>
    <p>Add-AdfsRelyingPartyTrust : Parameter set cannot be resolved using the
    specified named parameters. At
    C:\Users\ssh.AD\scripts\addRelyingParty.ps1:34 char:2
    +     Add-AdfsRelyingPartyTrust `
    +     ~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidArgument: (:) [Add-AdfsRelyingPartyTrust], ParameterBindingException
        + FullyQualifiedErrorId : AmbiguousParameterSet,Microsoft.IdentityServer.Management.Commands.AddRelyingPartyTrustCommand</p>
  </blockquote>
  
  <p>How can I write that?</p>