When running az vm create --generate-ssh-keys: When this option is called, and a private key exists in ~/.ssh/id_rsa, but there is not a public key in ~/.ssh/id_rsa.pub, the existing private key is overwritten by generation of a new key pair. Correct behavior is to derive a public key from the private key using ssh-keygen -y.
When running
az vm create --generate-ssh-keys: When this option is called, and a private key exists in~/.ssh/id_rsa, but there is not a public key in~/.ssh/id_rsa.pub, the existing private key is overwritten by generation of a new key pair. Correct behavior is to derive a public key from the private key usingssh-keygen -y.