Reputation: 37
How to Rename Virtual Machine Managed Disks on Microsoft Azure through PowerShell?
I tried with,
Update-AzureRmDisk
But I'm not able to change the name,
How can I do that?
Upvotes: 0
Views: 6312
Reputation: 73
I believe you cannot rename the Azure resources, however I have bumped into the same situation today for the OS disk and performed the below steps to achieve it from Azure portal.
PS: I had to wait a little bit for portal to show up the new disk in step# 5. I had to wait ~15 minutes.
Upvotes: 0
Reputation: 31452
There is no command the change the managed disk directly. So you cannot do that with one command.
But there is always another way to achieve that. And the solution follow five steps below:
The solution we lay out here is based on ARM template. You could accomplish something similar using PowerShell or Command Line Interface (CLI) scripts. For more details, see Renaming Virtual Machine Disks.
Upvotes: 1