On Upgrade , Raise Farm Behavior Level (FBL) on ADFS Farm Failed

The last step on ADFS (Active Directory Federation Services) upgrade from Previous version to the latest one is – Raise Farm Behavior Level (FBL).

before we run the “Invoke-AdfsFarmBehaviorLevelRaise” command we should test the that the all environment is ready for upgrading . run “Test-AdfsFarmBehaviorLevelRaise” and check that all tests pass successfully.

THE PROBLEM

If you are using external SQL database server and you try to run Invoke-AdfsFarmBehaviorLevelRaise , you may get the error :

Invoke-AdfsFarmBehaviorLevelRaise : Database upgrade could not be performed on localhost. Error: An error occurred during an attempt to connect to the AD FS configuration database. Error: Name cannot be NULL. Changed database context to ‘AdfsConfigurationV3’.. Confirm that the database hostname and instance name are correct and that the specified service account has logon access to the database. .

THE SOLUTION

Get the Credential and then run the Raise command :

$Credentials = Get-Credential
Invoke-AdfsFarmBehaviorLevelRaise -Credential $Credentials

To check that upgrade finish successfully run “Get-AdfsFsaarmInformation” and verify that the value of CurrentFarmBehavior = 4 (in case of upgrade to ADFS 2019).

In the Database server you should see a new database – “ADFSConfigurationv4”

SHMUEL H.

Leave a Reply

Discover more from Rafael IT Blog

Subscribe now to keep reading and get access to the full archive.

Continue reading