I have a created SSH key on Azure cloud. Now I want to create a Virtual Machine using the exiting key to use that public key source. Now I want to do this operation using ARM template. I was trying something like this
"osProfile": { "computerName": "myComputerName", "adminUsername": "adminUser", "linuxConfiguration": { "disablePasswordAuthentication": true, "ssh": { "publicKeys": [ { "path": "[concat('/home/', 'adminUser', '/.ssh/authorized_keys')]", "keyData": "how I get public key for the existing ssh key" } ] } } }
But I'm not sure how to fetch the public key of the created SSH Key.
