Search notes:

az vm show

Query public keys

Query the public keys for which users that want to login need to have the corresponding private key:
$ az vm show                              \
    --resource-group $RESOURCE_GROUP_NAME \
    --name           $VM_NAME             \
    --query osProfile.linuxConfiguration.ssh.publicKeys \
    -o table

Path                             KeyData
-------------------------------  -----------------------
/home/rene/.ssh/authorized_keys  ssh-rsa …


$ az vm show                              \
    --resource-group $RESOURCE_GROUP_NAME \
    --name           $VM_NAME             \
    --query osProfile.linuxConfiguration.ssh.publicKeys[0].keyData \
    -o table
… 

Index