locked
Set-MsolDomainAuthentication: Unknown error occurred. RRS feed

  • Question

  • Has anyone happened to the same event?

    ==============================

    PS> Get-MsolDomain -DomainName test.my.com
    Name                                                                                    Status          Authentication
    ----                                                                                    ------          --------------
    test.my.com                                                                           Verified        Federated

    PS > Set-MsolDomainAuthentication -DomainName test.my.com -Authentication Managed
    Set-MsolDomainAuthentication : Unknown error occurred.
    発生場所 行:1 文字:1
    + Set-MsolDomainAuthentication -DomainName test.my.com -Authentication M ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : OperationStopped: (:) [Set-MsolDomainAuthentication], MicrosoftOnlineException
        + FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.TransientServiceErrorException,Microsoft.Onli
       ne.Administration.Automation.SetDomainAuthentication

    ==============================

    Tuesday, July 3, 2018 9:30 AM

Answers

  • Yes, we have just seen this with our test domain.  We have logged a support ticket, it appears to have stopped ADFS as expected but Get-MsolDomain still shows as Federated. 
    • Marked as answer by jrv Tuesday, July 3, 2018 5:21 PM
    Tuesday, July 3, 2018 12:56 PM
  • Hi Wally.W & Mohanraj L

    Microsoft confirmed they could recreate the issue in various locations and last night raised an internal ticket, I just ran Get-MsolDomain it is showing as managed.  

    So not sure if Microsoft fixed it or if it just took 20 hours to propagate.  

    • Marked as answer by jrv Wednesday, July 4, 2018 7:35 AM
    Wednesday, July 4, 2018 7:30 AM

All replies

  • Yes, we have just seen this with our test domain.  We have logged a support ticket, it appears to have stopped ADFS as expected but Get-MsolDomain still shows as Federated. 
    • Marked as answer by jrv Tuesday, July 3, 2018 5:21 PM
    Tuesday, July 3, 2018 12:56 PM
  • Hi, Adam_KU

    Thanks your reply.

    I confirmed that federation was stopped. We expect the Set-MsolDomainAuthentication to operate correctly, and Get-MsolDomain to display correctly.


    • Edited by Wally.W Wednesday, July 4, 2018 1:39 AM
    Wednesday, July 4, 2018 1:01 AM
  • Is this issue resolved from MS side, I am still not able to convert my Federated domain to Standard and not able to remove domain from tenant.

    1) To convert Federated domain to Standard:

    PS C:\Users\Administrator> Convert-MsolDomainToStandard -DomainName mydomain.com -PasswordFile c:\password.txt -SkipUse
    rConversion $false
    Convert-MsolDomainToStandard : Service not available
    At line:1 char:1
    + Convert-MsolDomainToStandard -DomainName mydomain.com -PasswordFile  ...
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : InvalidOperation: (:) [Convert-MsolDomainToStandard], FederationException
        + FullyQualifiedErrorId : InternalError,Microsoft.Online.Identity.Federation.Powershell.ConvertDomainToManaged

    2) To remove domain from tenant:

    PS C:\Users\Administrator> Remove-MsolDomain -DomainName mydomain.com

    Confirm
    Continue with this operation?
    [Y] Yes  [N] No  [S] Suspend  [?] Help (default is "Y"): y
    Remove-MsolDomain : Unknown error occurred.
    At line:1 char:1
    + Remove-MsolDomain -DomainName mydomain.com
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : OperationStopped: (:) [Remove-MsolDomain], MicrosoftOnlineException
        + FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.TransientServiceErrorException,Microsoft.Onli
       ne.Administration.Automation.RemoveDomain

    Wednesday, July 4, 2018 4:13 AM
  • Hi Wally.W & Mohanraj L

    Microsoft confirmed they could recreate the issue in various locations and last night raised an internal ticket, I just ran Get-MsolDomain it is showing as managed.  

    So not sure if Microsoft fixed it or if it just took 20 hours to propagate.  

    • Marked as answer by jrv Wednesday, July 4, 2018 7:35 AM
    Wednesday, July 4, 2018 7:30 AM
  • Hi Adam_KU,

    I am still facing issue with removing my custom domain and converting domain to standard.

    PS C:\Users\Administrator> Remove-MsolDomain -DomainName mydomain.com -Force
    Remove-MsolDomain : Unknown error occurred.
    At line:1 char:1
    + Remove-MsolDomain -DomainName mydomain.com -Force
    + ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
        + CategoryInfo          : OperationStopped: (:) [Remove-MsolDomain], MicrosoftOnlineException
        + FullyQualifiedErrorId : Microsoft.Online.Administration.Automation.TransientServiceErrorException,Microsoft.Onli
       ne.Administration.Automation.RemoveDomain

    Wednesday, July 4, 2018 10:01 AM
  • Hi, I am having this problem at the moment. 

    How long did you need to wait? 

    Wednesday, July 4, 2018 2:11 PM
  • Hi Anthony Blackburn & Mohanraj L

    My domain information was displayed correctly.

    The Federated can be change and Get-MsolDomainFederationSettings can be used too.

    Let's wait for update propagate.

    Adam_KU

    Thanks for your reply and marked to jrv. It's a great help!!!!

    Thursday, July 5, 2018 1:14 AM
  • Hi,

    My issue resolved and my custom domain was removed from tenant now. It seems MS resolved this issue now.

    Thanks to everyone.

    Thursday, July 5, 2018 4:03 AM
  • Hi Wally,

    Yes when you Set-MsolDOmain Authentication and set it to Managed it did resolve my issue thanks.

    Sunday, June 2, 2019 4:48 AM