When there is a problem with your ADFS server(s) or your internet connection, there is no authentication possible on ADFS. Users are not able to login to their mail, use Skype For Business or Sharepoint.
When this happens, it is good to know there is an easy way to turn federation off and on again in powershell without requiring a connection to the ADFS server.
Before you start, make sure you had password sync enabled on the AAD Connect server. If not, you will have to set a new password for every user after disabling federation.
To turn federation off, create a connection to you o365 environment:
Make sure you installed the “Windows Azure Acrtive Directory Module for Windows Powershell”
Right click the icon and run as Administrator.
Run the following commands in the powershell window:
$cred=Get-Credential
For example: use an account like “user@domain.onmicrosoft.com” and not “user@yourdomain.com”.
Set-MsolDomainAuthentication -DomainName domain_name.com –Authentication Managed
When the ADFS servers are back online, you can turn Federation back on:
Go to (one of) your ADFS server and start the “Windows Azure Active Directory Module for Windows Powershell:
Enter a Global Administrator account from Office 365. Do not use a federated account to login.
For example: use an account like “user@domain.onmicrosoft.com” and not “user@yourdomain.com”.
o365 Login
Now ADFS should be up and running again.
Links:
Amit Kumar January 29, 2019 at 5:08 am
Good document , its working for me.