For personal Microsoft accounts, Microsoft now says you can no longer add a phone number as a new security method. Their current support article states: “For increased security, you can no longer add a phone number” when adding a new way to verify sign-in.
That said, Microsoft still supports receiving security codes by text in general for accounts that already have phone verification set up, and their support pages still describe SMS verification and genuine Microsoft verification texts.