The magnetized ISM from galactic to molecular cloud scales