Rename Azure Virtual Machine


I've got a question about how to rename a virtual mashine in Hyper V.
I already tried several solutions on the internet (for example renaming with the powershell script), but none seems to work.
Does anyone have experience with this and can help?

A Windows technology providing a hypervisor-based virtualization solution enabling customers to consolidate workloads onto a single server.
2,530 questions
{count} vote

4 answers

Sort by: Most helpful
  1. Alan Kinane 16,786 Reputation points MVP

    If it's an Azure virtual machine then the resource cannot be renamed. You would need to redeploy the virtual machine in order to choose a different name.

    You can use tags instead to help identify the resource or use a friendly name after the resource name, here's how to do that:

  2. Limitless Technology 39,336 Reputation points

    Hello UmanskiyFeliksFeliksUmanskiypartne

    Renaming a Virtual Machine in HyperV should be easy as long as the VM is Turned off (not Stopped or Running). It would be helpful if you post any information about how you are trying to rename and if there is any messages on screen that would help the community to identify the issue.

    Rename-VM cmdlet:


    --If the reply is helpful, please Upvote and Accept as answer--

    0 comments No comments

  3. Xu Gu (Shanghai Wicresoft Co,.Ltd.) 501 Reputation points Microsoft Vendor

    Hello UmanskiyFeliksFeliksUmanskiypartne,

    If you want to rename a virtual machine in Azure, you can only back up the data from the original virtual machine, then delete the old virtual machine, create a new virtual machine, and finally import the data from the old virtual machine into the new virtual machine.

    The link below have the same problem with you:

    I hope my answer can help you!

    Best Regards,
    Xu Gu

    0 comments No comments

  4. Pavel yannara Mirochnitchenko 11,616 Reputation points

    So Azure or Hyper-V, which is it? Totally different platform and capabilities. In Azure it cannot be renamed.

    0 comments No comments