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 commentNima Chavoshi commented
Hi guys, truly ridiculous that user can NOT change the name of Instance !!! probably that is Google strategy to somehow make more money by pushing users to re-create the VM if "renaming" is required!