Unfortunately, Microsoft Authenticator does not provide a direct way to export all your accounts to a file that can be imported into other 2FA apps like Aegis or 2FAS. This is a security measure to protect your accounts.
However, Microsoft Authenticator allows you to transfer accounts to another device using QR codes. This is a more secure method than exporting a file.
Before making any changes, ensure you have backup methods (e.g., backup codes or email recovery) for each account, as transferring 2FA settings can sometimes result in being locked out of accounts.