Magnetic properties of patterned tunnel junctions