We just setup two new SharePoint Farms both with SharePoint Subscription Edition April 2023 CU (KB5002375) and ran into the same issue on both servers. This seems to be a show stopper.
I also removed the entire Search Service Application and created it again, which didn't solve it. I used the GUI to create the Search Service Application.
ULS shows these errors every minute, probably caused by the job-application-server-admin-service, same on both SharePoint Farms.
Product: SharePoint Server Search, Level: Unexpected:
failed to synchronize the admin component for application Search Service Application: System.Runtime.InteropServices.COMException (0x80070006): The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))
at Microsoft.Office.Server.Search.Administration.SearchApi.RunOnServer[T](CodeToRun`1 remoteCode, CodeToRun`1 localCode, Boolean useCurrentSecurityContext, Int32 versionIn)
at Microsoft.Office.Server.Search.Administration.SearchApi.AddApp(ComponentRole role, Boolean settingInRegistry, Int32 id, String localStoragePath, Boolean master, Guid partitionGuid)
at Microsoft.Office.Server.Search.Administration.SearchServiceInstance.SynchronizeAdminComponent(SearchServiceApplication application)
at Microsoft.Office.Server.Search.Administration.SearchServiceInstance.Synchronize()
Product: SharePoint Server, Level: Critical:
Application Server Administration job failed for service instance Microsoft.Office.Server.Search.Administration.SearchServiceInstance (afb7dd96-be3d-4576-b303-ea930958eeee). Reason: One or more errors occurred. Technical Support Details: System.AggregateException: One or more errors occurred. ---> System.Runtime.InteropServices.COMException: The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))
at Microsoft.Office.Server.Search.Administration.SearchApi.RunOnServer[T](CodeToRun`1 remoteCode, CodeToRun`1 localCode, Boolean useCurrentSecurityContext, Int32 versionIn)
at Microsoft.Office.Server.Search.Administration.SearchApi.AddApp(ComponentRole role, Boolean settingInRegistry, Int32 id, String localStoragePath, Boolean master, Guid partitionGuid)
at Microsoft.Office.Server.Search.Administration.SearchServiceInstance.SynchronizeAdminComponent(SearchServiceApplication application)
at Microsoft.Office.Server.Search.Administration.SearchServiceInstance.Synchronize() -
-- End of inner exception stack trace ---
at Microsoft.Office.Server.Search.Administration.SearchServiceInstance.Synchronize()
at Microsoft.Office.Server.Administration.ApplicationServerJob.ProvisionLocalSharedServiceInstances(Boolean isAdministrationServiceJob) ---> (Inner Exception #0) System.Runtime.InteropServices.COMException (0x80070006): The handle is invalid. (Exception from HRESULT: 0x80070006 (E_HANDLE))
at Microsoft.Office.Server.Search.Administration.SearchApi.RunOnServer[T](CodeToRun`1 remoteCode, CodeToRun`1 localCode, Boolean useCurrentSecurityContext, Int32 versionIn)
at Microsoft.Office.Server.Search.Administration.SearchApi.AddApp(ComponentRole role, Boolean settingInRegistry, Int32 id, String localStoragePath, Boolean master, Guid partitionGuid)
at Microsoft.Office.Server.Search.Administration.SearchServiceInstance.SynchronizeAdminComponent(SearchServiceApplication application)
at Microsoft.Office.Server.Search.Administration.SearchServiceInstance.Synchronize()<---
Please help to solve this soon. Thanks.