Hello
We had made our ADFS migration 6 month ago from our 2012 R2 server to 2022 server.
Our environnement is : two ADFS proxy on DMZ and 2 ADFS Server with WID database (one master and one slave) all these 4 server are now on Windows 2022.
Before, we've got the same thing but with Windows 2012 R2
The migration was ok we add the new servers, remove the old, then upgrade.
The Get-AdfsFarmInformation say that our FBL is 4 with the corrects server on the FarmNodes list.
All our previous applications using ADFS are working fine
Hower we've got on the Event viewer every 5 minutes since 6 month, the famous event ID 180 :
An error occurred while upgrading FarmBehaviorLevel 'Max' from Minor Version '0' to Minor Version '4'.
Additional Data
Exception details:
MSIS7628: Scope names should be a valid Scope Description name in AD FS configuration.
When I activate the ADFS Tracing log I've got :
ERROR 37
An error occurred while trying to add an object:
Message: The INSERT statement conflicted with the FOREIGN KEY constraint "FK_OAuthScopes_OAuthScopeId". The conflict occurred in database "AdfsConfigurationV4", table "IdentityServerPolicy.OAuthScopeDescriptions", column 'OAuthScopeId'.
The statement has been terminated.
I open the WID database with sql management studio and find these 2 tables :
OAuthCopeDescriptions contains 1 line for allatclaims ScopeName with an ID on OAuthScopeId.
OauthScopes is empty
This table seems to get two Foreign Key OAuthScopeId (certainly from the other table) and PermissionId (certainly from the table OAuthPermission.
OAuthPermission is empty too.
We are able to add others Reliyng Party Trust and they are working. However if we want to use Application Groups for example, we've got errors. On Devis Registration, we have a message : Device registration is not configured. You must upgrade your AD FS Farm before you can configure device registration.
I have to upgrade the farm again however, system say that we already are on last Version.
I don't want to roolback from the old database because we've made a lot modification from the last 6 months.
If someone is able to help us about this problem.
Thanks in advance