Hi, Akshay:
I do not have error when I use Azure Portal to update the SSH Key. However, as I mentioned, the key did not apply properly. It took it as one line instead of SSH key format. That's why we need to use the Azure CLI to update the SSH key. I have attached the expected result and unexpected result as your reference. As I know, only update the SSH key thru Azure CLI will show the expected result in attachment.
Can you please help to on my Azure CLI error and provide the solution if possible? Azure Portal Key vault option is not working for me. Thank you!
Expected SSH Key result:
Unexpected SSH Key result: