Prepare Ubuntu general image for Hyper-v deployment is more easy process than Windows, there not SID etc… .
After installation of Ubuntu VM on Hyper-V just delete “ssh_host_*” keys and re-generate new server keys.
Login as the root and type the following command to delete “ssh_host_*” keys :
# rm /etc/ssh/ssh_host_*
After regenerated new ssh server keys just restart ssh server
systemctl restart sshd