Migrating Virtual Machines with SSH keys between azure tenants

Sri Manthena 6 Reputation points
2023-10-19T15:31:35.68+00:00

Hi Team,

I am in the middle of a migration project .Customer have few Virtual Machines which use SSH keys that need to be migrated between two Azure tenants. I am able to move the VM's between the tenants but how can I move the SSH keys is my question.

Any help is appreciated.

Thank you

Sri

Azure Virtual Machines
Azure Virtual Machines
An Azure service that is used to provision Windows and Linux virtual machines.
7,907 questions
{count} votes

1 answer

Sort by: Most helpful
  1. Tushar Kumar 3,326 Reputation points MVP
    2023-10-19T16:19:22.7566667+00:00

    Hi Sri Manthena,

    You Can re-create the SSH key by just taking the public key from old resource you can copy the exsisting key:

    User's image

    and while creating new key on Azure in new tenant use the same :

    User's image

    Please Click " Accept as answer" if this helps

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.