Tag Archives: PowerShell

MSOLDomain / MSOLFederatedDomain (Convert, Update, FederationProperty) Operations Fail with “Service not available”

BACKGROUND

Consider the following scenario:

  1. You are running, or are in the process of setting up, Office 365
  2. You are attempting to use Azure Active Directory Module for Windows PowerShell to do any of the following operations:
    1. Convert-MSOLDomainToFederated
    2. Convert-MSOLDomainToStandard
    3. Update-MSOLFederatedDomain
    4. Get-MsolFederationProperty
  3. The operation is aborted with reason “Service not available”. Extracts from example error message :

   + FullyQualifiedErrorId : InternalError,Microsoft.Online.Identity.Federation.Powershell.FederationPropertiesCommand

 Update-MSOLFederatedDomain : Service not available

CAUSE

This behaviour is caused by a bug in the 8362.1 version of the Azure Active Directory Module for Windows PowerShell (released January 19th 2015). When using this version, MSOLDomain/MSOLFederatedDomain operations fail with the “Service not available” error (the time of writing this is March 2015).

RESOLUTION

The resolve this, you need to uninstall the 8362.1 version of the Module, and revert back to the previous version – 8262.2. Follow these steps:

  1. Uninstall the Azure Active Direcotry Module for Windows PowerShell from the Control Panel (You can keep the required Sign-in Assistant installed).
  2. Visit this link: http://social.technet.microsoft.com/wiki/contents/articles/28552.microsoft-azure-active-directory-powershell-module-version-release-history.aspx#AO1
  3. Download version 8262.2 of the Module (direct link to 64-bit version here).
  4. Install the 8262.2 version, connect to AAD and attempt the operation again. This time it will work.