Is this an automated, or one off?
Regardless, it a fare chunk of work.
Have you got your “active” list of database out of Azure SQL?
Are they named the same as their Mongodb equivalents? Etc etc.
This option in python api may help.
database – Database level operations — PyMongo 3.12.0 documentation
Good luck.