az sshkey

Manage SSH public keys with virtual machines. Part of azure-cli (also known as az). More information: https://learn.microsoft.com/cli/azure/sshkey.

az sshkey create --name {{name}} --resource-group {{resource_group}}

az sshkey create --name {{name}} --resource-group {{resource_group}} --public-key "{{@path/to/key.pub}}"

az sshkey list

az sshkey show --name {{name}} --resource-group {{resource_group}}