Another day, another Hybrid Azure AD Join issue.
Having set up Hybrid Join, it looked like it was working. The device I onboarded via autopilot was created in "on-prem" AD, was in Azure AD, but was listed as an Azure Registered device, rather than Hybrid Joined / Azure AD Joined.
As our on-prem AD Domain Controller is in a hosted DC, meaning we have no line of sight to, I then have to sign onto the laptop using local admin creds, connect to the VPN and then switch user, which then allows the user to sign on to the device.
Running dsregcmd /status showed that the device was joined to the on-prem domain, but not AzureAdJoined.
It listed an error of error_missing_device in the diagnostics. Running the Intune tasks from Task Scheduler > Microsoft > Windows > Workplace Join resolved this and also created a Hybrid Joined entry in Azure AD.
This doesn't feel right to me, but I am wondering if part of the reason is because there is no line of sight DC until after signing onto the device and joining the VPN - at that point the task has already run and "failed".
Is there a way around this? Or am I going to have to give up on Hybrid Azure Joined and go to Azure AD Joined and deal with the issues of devices accessing resources / servers in our on-prem domain?
Thanks.