Consider the following scenario:
- You are running, or are in the process of setting up, Office 365
- You are attempting to use Azure Active Directory Module for Windows PowerShell to do any of the following operations:
- 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
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).
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:
- Uninstall the Azure Active Direcotry Module for Windows PowerShell from the Control Panel (You can keep the required Sign-in Assistant installed).
- Visit this link: http://social.technet.microsoft.com/wiki/contents/articles/28552.microsoft-azure-active-directory-powershell-module-version-release-history.aspx#AO1
- Download version 8262.2 of the Module (direct link to 64-bit version here).
- Install the 8262.2 version, connect to AAD and attempt the operation again. This time it will work.