Chosen Solution

Hello, Can I put the logic board and the power supply an iMac 27" 2013 in to a 1U rack case?

The iMac is not designed to be repurposed into a rack system. There are a few companies that make mounting systems for the new MacPro series: