At this time, the Microsoft Multi-Factor authentication system is not configured to allow your first device enrolled to be a YubiKey security key. You can use a YubiKey as your primary authentication method, but you will need to set up an alternate method (passkey or Microsoft Authenticator number matching) prior to enrolling a YubiKey.