You didn’t receive a security code | XBOX Support
Whenever you access, change personal info in, or add new contact info to your Microsoft account, we generate a security code and send it to either an email address or a device number in your account security info. You're then prompted to enter that code to confirm the change. Generally, it only takes a few moments to receive the code.