You will need to scan this code with the authenticator app. Now, open the Microsoft Authenticator app and switch to the Accounts screen. There, select Add account > Work or school account.
However, some apps and accounts can't be moved that easily and will require some special attention from you, including the ...