We earlier outlined how you can configure the Windows device to be managed by Microsoft 365 Business and access on premises resources by using the http://aka.ms/aadj.
One of the aspects to keep...
You can migrate any profile on the same PC (Workgroup, Domain orAzureAD profile) directly to the new AzureAD profile including all settings. You can also backup a Win 7, 8 8.1 or Win10 profile from any PC and restore it directly to the new AzureAD profile.