@Ahmad Afzaal , For an Azure AD user to login to a Windows 10 machine, that machine should be joined to AAD through any of the following means:
- Azure AD Registered Device
- Azure AD Joined
- Hybrid Azure AD Joined
Until the machine is registered in AAD, if you login even with an Azure User, the machine would treat that user a local user (since machine is not connected to Azure AD).
I would recommend you going through the following articles to get an understanding of how to add a device to AAD first and then how an enterprise user present in that AAD can login to that machine using his organization account:
- Device Identity: https://learn.microsoft.com/en-us/azure/active-directory/devices/overview
- Different Types of Device Registrations in AAD: https://learn.microsoft.com/en-us/azure/active-directory/devices/concept-azure-ad-register
- Managing Device Identities: https://learn.microsoft.com/en-us/azure/active-directory/devices/device-management-azure-portal
Hope this helps:
Do let us know if this helps and if there are any more queries around this, please do let us know so that we can help you further. Also, please do not forget to accept the response as Answer; if the above response helped in answering your query.