Let's imagine I create an Azure virtual machine. Say a small one initially.
Later on I decide that the perf of this machine isn't cutting it. I want to upgrade to a larger machine more powerful one.
Given that I've already fully configured this machine to work the way I need it to, how quickly \ easily can it be upgraded so say a medium machine?
Nope. As per official article: Microsoft does not support an upgrade of the operating system of a Microsoft Azure virtual machine. Instead, you should create a new Azure virtual machine that is running the supported version of the operating system that is required and then migrate the workload.
The shutdown automation provided natively by Azure puts the machine in the Deallocated state, so it is not being billed while it is shut down.
It is very easy. You go to the portal and configure/settings/virtual machine size. The instance will reboot once (depending on your application that can be an issue or take time) and the virtual hardware will be changed.
From PowerShell, changing Virtual Machine size is trivial:
Set-AzureVMSize [-InstanceSize] <String> -VM <IPersistentVM> [ <CommonParameters>]
You then need to call Update-AzureVM
to have the changes take effect. So... to go from Small to Medium, you can retrieve your VM information, update the size, and then update the VM based on the size change:
Get-AzureVM -ServiceName "YourServiceName" -Name "yourVMName" | Set-AzureVMSize "Medium" | Update-AzureVM
See full documentation here.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With