Virtual Machine can't be joined to Azure AD after Sysprep
Hi All,
Need your expert advise.
I have a Windows Virtual Machine image prepared with Sysprep. The image has setupcomplete.cmd where provisioning package (ppkg) does Azure AD domain enrollment. It works fine for laptop or desktop system, but not for VM. When I deploy the Sysprep-image with this provisionong package, Azure AD detects it as one machine. Whatever VMs are deployed, Azure AD see it as one the same machine, seems some GUID or SID not resets during Sysprep. But no any issues for physical Active Directory. The issue only for Azure AD.
I found this:
Azure AD joined devices can’t be deployed using System Preparation Tool (Sysprep) or similar imaging tools.
Are there any ways to fix it? Sysprep is needed to generalize the image, so what other options are available?
Please note that the question not related with Azure VMs, I use local VM under Hyper-V, VirtualBox, Parallels Desktop for Mac etc., and want to find a way to get it joined to Azure AD.