Recover Public Key from Private Key

I only backup my Private Key for SSH Access to my Azure VM, and soon i realize that i need the public key to provision a new VM in Azure. Please refer to the steps below on how to recover my public key from Private Key

Enter the following commands in MobaXterm

cd .ssh
ssh-keygen -f id_rsa -y > id_rsa.pub
Enter passphrase:

ls
id_rsa       id_rsa.pub   known_hosts

Public Key (id_rsa.pub) was recovered successfully.