Hey all – we’re excited to announce the public beta for renaming a VM. You can try it out by running:
$ gcloud beta compute instances set-name CURRENT_NAME —zone=ZONE —new-name=NEW_NAME
For this first version, you’ll need to stop the VM before you rename it.
More details at the docs here: https://cloud.google.com/compute/docs/instances/rename-instance
As always, feedback welcome. We’re working on GA’ing this feature soon, which will include adding support in the Developer Console UI.
An error occurred while saving the commentZaphod Beeblebrox commented
This is very frustrating. You should just be able to rename the instance, how basic is that ?! A truly terrible interface. My server has been stuck with the name "whatever test" for nine months !