How to Maintain Hostname While Upgrading to SSD v2 for Existing VMs?

0
10
Asked By TechieNerd42 On

I'm looking to create a command-line script that upgrades the data disks of existing virtual machines to the Premium SSD v2 type. My focus is on whether I should handle this on the Azure side or through other systems like Active Directory or a CMDB. Additionally, I'd like guidance on ensuring that the hostname remains consistent when I create a new VM to facilitate this upgrade, as the current VMs are in Availability Sets and I want to transition to Availability Zones. Any insights on the best method to achieve this would be appreciated!

3 Answers

Answered By CodeGuru88 On

Just give it a go! Testing is often the best way to inform your approach. But I have to say, if the conversation hasn’t yielded much feedback so far, it might be time to step away from automated solutions and explore practical ones.

Answered By CloudWizard79 On

Are you asking if you should create a new disk or upgrade the SKU of an existing one? These are two distinct actions that may lead to confusion.

Answered By AzureAce53 On

I don’t really understand why you think upgrading the data disk would change the hostname. If you're upgrading to SSD v2 and the VM is in an Availability Set (AS), you’ll need to create a new VM in an Availability Zone (AZ) for that upgrade. Make sure you reference the Azure docs for converting managed disk types for clarity on this process.

TechieNerd42 -

Thanks for the clarification! I appreciate the pointer. I'm mainly concerned with the upgrade process due to the need to change from AS to AZ and keeping the hostname intact.

Related Questions

LEAVE A REPLY

Please enter your comment!
Please enter your name here

This site uses Akismet to reduce spam. Learn how your comment data is processed.