Microsoft.Template | > Custom Deployment - Admin Public Key is blank RRS feed

  • Question

  • From creating a Spot VM with SSH generation through the Portal that then fails Deployment due to current price rising above user's max price, I was taken to the Templates Overview page at the Portal, as well as getting to download the generated *.pem file.

    Clicking on Redeploy takes user to all the settings but the required Admin Public Key box is blank. I'm not sure what to put in here, as when I inspect my recently downloaded .pem file, it says it's the RSA Private Key.
    Thursday, July 9, 2020 2:51 PM

All replies

  • lol, I should just start the VM creation from scratch...

    but interestingly, since I have the private key I found that I can

    ssh-keygen -y -f ~/.ssh/id_rsa > ~/.ssh/

    then copy the public key and paste it into the field in the Portal. (If you get a "private key too open" error, just chmod 400 path/to/id_rsa

    Friday, July 10, 2020 2:14 AM