@malou8391 Thanks for reaching out.
Windows 10 login with Azure AD or Microsoft account is not currently supported with Yubikey as of now. The only 2nd factor supported by Windows for AAD and MSA is windows hello for business.
You can however use local account to be able to login to windows 10 using yubikey as second auth.
Here is the link which talks about best practices and supported scenarios :
https://support.yubico.com/hc/en-us/articles/360013708460-Yubico-Login-for-Windows-Configuration-Guide
-----------------------------------------------------------------------------------------------------------------
Please remember to "Accept Answer" if any answer/reply helped, so that others in the community facing similar issues can easily find the solution.