If your account is already visible in the Microsoft Authenticator app but you're being asked for an authentication code during setup, here's what to do: Open the Microsoft Authenticator app, tap on your account, and you should see a detailed screen displaying the authentication code. Use this code to complete the setup process.
Please accept this response as an Accepted answer if it helps.