Welcome to Microsoft Q&A Platform, thanks for posting your query here.
For rotating the SSH key pair of the Azure Linux VM, you can use Password Reset option under VM and from here you can reset the SSH keys.
Also, you can follow these steps here to Update the SSH keys using Azure CLI.
Hope this helps.
If you need further help on this, tag me in a comment.
If the suggested response helped you resolve your issue, please 'Accept as answer', so that it can help others in the community looking for help on similar topics.