Hi,
We were originally having some issues migrating mailboxes and the advice I found was to uninstall the hybrid agent and run the Hybrid Configuration Wizard again, so that is what I did, however when trying to run the HCW it fails to register the agent. I have checked all the prerequisites and we seem to meet all the requirements.
Looking at the logs the only error appears to be the bellow:
2024.12.27 01:51:17.046 10332 [Client=UX, fn=SendAsync, Thread=19] START PATCH https://graph.microsoft.com/beta/XXXXXXXX {"onPremisesPublishing":{"applicationServerTimeout":"Default","applicationType":"microsoftapp","externalAuthenticationType":"passthru","externalUrl":"https://XXXX.resource.mailboxmigration.his.msappproxy.net:443/","internalUrl":"https://XXXXXXX:443/","isOnPremPublishingEnabled":true,"isTranslateHostHeaderEnabled":false,"isTranslateLinksInBodyEnabled":false,"singleSignOnSettings":null,"verifiedCustomDomainCertificatesMetadata":null,"verifiedCustomDomainKeyCredential":null,"verifiedCustomDomainPasswordCredential":null}}
2024.12.27 01:51:17.230 10333 [Client=UX, fn=SendAsync, Thread=19] FINISH Time=184.1ms Results=BadRequest {"error":{"code":"Invalid_App","message":"The application with objectId XXXXXXXX is soft-deleted","innerError":{"date":"2024-12-27T01:51:17","request-id":"XXXXXX","client-request-id":"XXXXXX"}}}
I have used MS Graph explorer to view all the soft deleted apps and this is not one of them. In fact I cannot find any reference to this app ID in our tenancy. I am guessing this is some leftover config from the last time HCW was ran, but I am unsure on how to clear it? My thoughts were maybe a registry Key somewhere.
Any help or suggestions would be appreciated as I have been unable to find any information on this issue.