Managing personal Outlook.com account settings, security, and privacy
Hello,
If you've already set up a different verification method, such as Authenticator or Passkey, you can choose "Show more Verification Methods" on the screen and use it to Verify Your Identity.
If you have access to the recovery email and you no longer receive the verification code in it, check the Junk or SPAM email folders and see whether the email from Microsoft ended up there.
Alternatively, you can switch to another browser and use a different Wi-Fi network, such as a mobile network, and try requesting the code.
For reference, see the
Reasons why verification codes don't always arrive help article for reference.
However, if you only have a recovery email and you don't have access to it, you will have to replace the Security info by selecting 'I don't have any of these' on the screen and follow the prompts to replace it. (As shown in the screenshot)
Note -
If you remove all of your previous security information and replace it with something new, your account will be put into a restricted state for 30 days.