Getting VM SSH certificate with user credential has been implemented by https://github.com/Azure/azure-cli/pull/17093. The VM SSH service is ready for Service Principal, so Azure CLI should support getting VM SSH certificate with Service Principal credential.
Getting VM SSH certificate with user credential has been implemented by #17093.
The VM SSH service is ready for Service Principal, so Azure CLI should support getting VM SSH certificate with Service Principal credential.