yes you can also replace/manage your SSH key from the UI/Azure Dashboard also
- Choose your VM
- "Settings" and select "Reset password".
- You'll see three options - Reset password, Reset SSH public key, and Reset SSH public key and password. Select "Reset SSH public key".
- Enter your username and paste your new public SSH key in the appropriate fields.
Please note that this process will not remove the old SSH key. The old key will still be able to access the VM unless you manually remove it from the ~/.ssh/authorized_keys file in the VM.
However, if you don't want to use the CLI, you can't manually remove the old SSH key from the ~/.ssh/authorized_keys file, which might be why you're still able to access the VM with the old key.
To completely replace the SSH key without CLI, you may need to redeploy the VM. Redeployment resets the SSH configuration, including the SSH key