Note
Access to this page requires authorization. You can try signing in or changing directories.
Access to this page requires authorization. You can try changing directories.
Question
Thursday, July 25, 2013 2:31 PM | 1 vote
Hi all,
I need to rename a VM in Azure, I know that I can chance the server name internaly however now I have 2 names in the console and I would like to know if its possible to change that name in the Management Portal.
Thanks!
Claudia C.
All replies (6)
Thursday, July 25, 2013 5:38 PM ✅Answered | 3 votes
If you rename the hostname from the guest, the Azure portal should reflect the new name within a few minutes. Note that this changes just the instance name and not the DNS name (i.e. *.cloudapp.net) since the latter belongs to the cloud service. If you want to change the DNS name, you'll need to delete the cloud service, recreate it using the new name, and then redeploy the VM inside of it.
Wednesday, January 14, 2015 10:39 AM
is this still the case, i renamed a VM (in windows) about 15 minutes ago and its still hasnt reflected in Azure Instance Name
Friday, June 5, 2015 11:03 AM | 3 votes
This is an unsupported feature as of now. You cannot rename a VM.
Changing the name from inside VM will be reflected only if it is a cloud service (web/worker role) and not for IaaS VM.
For VMs, there is a workaround. Delete your VM but do not delete associated disks (vhd).
Create a new VM with desired name from your old VM's VHD.
Tuesday, March 27, 2018 3:33 AM
What a bad wrong answer:(
黄俊伟(<g class="gr_ gr_3 gr-alert gr_spell gr_inline_cards gr_run_anim ContextualSpelling" data-gr-id="3" id="3">wbpluto</g>) MSN: [email protected] Blogs: http://blog.wbpluto.com http://blogs.itecn.net/blogs/wbpluto
Friday, March 30, 2018 10:13 AM
Currently, you cannot rename virtual machine.
I would request you to vote up an idea submitted by another Azure customer.
https://feedback.azure.com/forums/216843-virtual-machines/suggestions/6132055-rename-vm
All of the feedback you share in these forums will be monitored and reviewed by the Microsoft engineering teams responsible for building Azure.
Do click on "Mark as Answer" and “Vote as Helpful” on the post that helps you, this can be beneficial to other community members.
Friday, April 12, 2019 4:23 PM
There is a good article by Nicole Walsh where she provides a script to delete and recreate the VM with the new name and then attach the old associated objects. It works great for the actual renaming of the VM object but all of the associated objects retain the old name.
My question is what would be the best way to rename the associated objects as part of this process? Ex. Managed OS Disk, Data Disk, NIC's, PIP's, etc.