Chosen Solution
I replaced the hard drive with a SSD on my imac, 27”. I copied the old hard drive before I started. Replaced drive with SSD from ifixit upon reboot it is not recognizing it, tried to do a time machine recovery but new drive not recognized to write to.
You need to format the drive GUID Mac Extended Journaled before you start or your Mac will not see it internally. Use Disk Utilities to do this. I would format the drive first, then install the system. Now use Migration Assistant to move your data. This way the Repair Partition gets installed.