Skip to content

Pull Public Key from keyvault #10255

Answered by brwilkinson
Grant-Rc asked this question in Ideas
Mar 30, 2023 · 2 comments · 5 replies

You must be logged in to vote

Given that you first need to generate the public/private key pair....

  1. https://learn.microsoft.com/en-us/azure/virtual-machines/linux/ssh-from-windows
  2. https://learn.microsoft.com/en-us/azure/virtual-machines/linux/mac-create-ssh-keys#create-an-ssh-key-pair
  3. https://learn.microsoft.com/en-us/azure/virtual-machines/ssh-keys-portal

Deciding which of the above that you want to use is the first step. 1 + 2 are locally and 3 is in the portal.

You can then decide if you want to store the public key in a keyvault or in sshpublickeys

personally I create the pair locally, then store the public key in the keyvault at the same, that is a 1 time setup. So then I just use getsecret()
E.g.

Replies: 2 comments 5 replies

You must be logged in to vote
5 replies
@Grant-Rc

@brwilkinson

@brwilkinson

@brwilkinson

@brwilkinson

Answer selected by brwilkinson

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Ideas
Labels
None yet
3 participants