How can we improve Azure Virtual Machines?

rename vm

Add the ability to rename a VM. The VM name is what appears in Azure, not the DNS name.

Changing a VM's name should not affect the VM in any way. If you need a unique identifier for a VM that does not change, I suggest using a GUID rather than the VM's name in Azure.

669 votes
Sign in
Sign in with: Microsoft
Signed in as (Sign out)

We’ll send you updates on this idea

Daniel Barbalace shared this idea  ·   ·  Flag idea as inappropriate…  ·  Admin →


Sign in
Sign in with: Microsoft
Signed in as (Sign out)
  • David Lean commented  ·   ·  Flag as inappropriate

    I realise that it is possible to write a powershell script that identifies all resources in a VM (disk nic). Deletes the VM, Then recreates the VM with a new name. It runs in less than a minute.
    It is also possible to do something similar to rename disks. (copy to new name, delete old & reattach)

    As I could write a Rename-AzureRmVM & Rename-AzureRMManagedDisk function in a short period of time. (less than 4.5 years) Perhaps the Azure team might consider doing the same thing, while they are thinking about doing it better in the API.

  • Vivek commented  ·   ·  Flag as inappropriate

    current rename process taking too much time, its one of the key features that;s need to implicate soon.

  • tony commented  ·   ·  Flag as inappropriate

    Four years later, and it's still not a feature. Neat.

    This was so basic, I wasted probably ten minutes trying to figure out what I was missing. Didn't even consider that it was a feature that just hadn't been built yet, or worse, that developers architected themselves into a corner and did something daft like keying off of the object name instead of some unique identifier like, oh i dunno, uuid.

  • Florian Floimair commented  ·   ·  Flag as inappropriate

    I agree with what people wrote here. Not being able to rename resources is a big blocker and wastes a lot of time.
    One might think that this is a business decision so that users will have to have 2 times the same VM until everything has been ported from the old to the new (correctly named) VM.

    Renaming resources should be a basic feature unrelated to anything within the VM or other resources.

  • Ashley Johnson commented  ·   ·  Flag as inappropriate

    You have to admit.. @Microsoft you have a huge flaw here which is causing deep concern to customers migrating or setting up an azure infrastructure.. Why can't you provide one simple option?

  • PSC commented  ·   ·  Flag as inappropriate

    I believe that is why Azure is still on 2nd and AWS is on top. This is basic need.

  • Anonymous commented  ·   ·  Flag as inappropriate

    This should be a baseline functionality. Please add a supported method of easily renaming a VM in Azure.

  • Raj commented  ·   ·  Flag as inappropriate

    When we restore a VM from backup, hostname should become same as restore VM name. Else, say both original VM and Restored VM (different name, resource group ) are up in the network, still they would share same hostname. HostName lookup will fail for both VM in this case.

  • Lonny Motto commented  ·   ·  Flag as inappropriate

    "Use the GUID" answers the question of how to determine uniqueness and side-steps the argument proposed here completely. How do you rename a VM?

    This seems like a result of the ARM design that they should have at least provided an easy solution for. And not powershell, because redeploy doesn't account for all the variables associated with a VM, like extensions, backups, multiple nics, etc.

    If they haven't provided this by now, they never will.

  • Ray Koukari commented  ·   ·  Flag as inappropriate

    You can't rename can't search by IP...are you guys using Access 2010 as the db backend too?

Feedback and Knowledge Base