Hi,
I have the same problem when running this command. My domain has been verified. The weird thing is I was able to run this command and it worked fine back then. After my trial account has been expired, I redo everything with the new trial account and I get stuck at this point now.
Here is a list of commands I use:
PS C:\Windows\system32> $dom = "xxx.com”
PS C:\Windows\system32> $fedBrandName = “xxx Shibboleth”
PS C:\Windows\system32> $url = "https://xxx/idp/profile/SAML2/POST/SSO"
PS C:\Windows\system32> $ecpUrl = "https://xxx/idp/profile/SAML2/SOAP/ECP"
PS C:\Windows\system32> $uri = “https://xxx/idp/shibboleth”
PS C:\Windows\system32> $logoutUrl = “https://xxx/logout”
PS C:\Windows\system32> $cert = New-Object System.Security.Cryptography.X509Certificates.X509Certificate2("xxx.crt")
PS C:\Windows\system32> $certData = [system.convert]::tobase64string($cert.rawdata)
PS C:\Windows\system32> Set-MsolDomainAuthentication –DomainName $dom –federationBrandName $FedBrandName -Authentication Federated -PassiveLogOnUri $url -SigningCertificate $certData -IssuerUri $uri -ActiveLogOnUri $ecpUrl -LogOffUri $logoutUrl -PreferredAuthenticationProtocol SAMLP
Set-MsolDomainAuthentication : Unable to complete this action. Try again later.
At line:1 char:29
+ Set-MsolDomainAuthentication <<<< -DomainName $dom -federationBrandName $fed
BrandName -Authentication Federated -PassiveLogOnUri $url -SigningCertificate $
certData -IssuerUri $uri -LogOffUri $logoutUrl -PreferredAuthenticationProtocol
SAMLP
+ CategoryInfo : OperationStopped: (:) [Set-MsolDomainAuthenticat
ion], MicrosoftOnlineException
+ FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.Ident
ityInternalServiceException,Microsoft.Online.Administration.Automation.Set
DomainAuthentication
Thanks,
Patrick