add second custom AAD domain, customizing existing record


$msolcred = Get-Credential -UserName admin@netmagic.onmicrosoft.com  `
                            -Message "password for netmagic is FRED!"
Connect-MsolService -Credential $msolcred -ErrorAction Stop



    $setfed = Get-MsolDomainFederationSettings -DomainName rapmlsqa.com
    $aMetadataExchangeUri = $setfed.MetadataExchangeUri
    $aSigningCertificate = $setfed.SigningCertificate


    $aFederationBrandName = "rapmls.info"
    $aIssuerUri = "https://ssoportal.rapmlsqa.com/spinitiatedssohandler.aspx/vail"

    $newuriACTIVE = "https://ssoservices.rapmlsqa.com/Issuer.svc/Office365/MLS/VAIL/15/VAIL"
    $newuriPASSIVE = "https://ssoportal.rapmlsqa.com/SPInitiatedSSOHandler.aspx/VAIL/15"   
    $aLogOffUri = "https://ssoportal.rapmlsqa.com/spinitiatedssohandler.aspx/vail/15"

 
    Set-MsolDomainFederationSettings -DomainName rapmls.info -FederationBrandName $aFederationBrandName -ActiveLogOnUri $newuriACTIVE -IssuerUri $aIssuerUri -PassiveLogOnUri $newuriPASSIVE -LogOffUri $aLogOffUri -SigningCertificate $aSigningCertificate  -MetadataExchangeUri $aMetadataExchangeUri


    Get-MsolDomainFederationSettings -DomainName rapmls.info


Advertisements

About home_pw@msn.com

Computer Programmer who often does network administration with focus on security servers. Very strong in Microsoft Azure cloud!
This entry was posted in AAD. Bookmark the permalink.