Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How hard is it to upgrade an Azure virtual machine [closed]

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?

like image 298
Rory Becker Avatar asked Apr 17 '13 12:04

Rory Becker


People also ask

Can you upgrade an Azure VM?

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.

Do Azure VMs cost money when stopped?

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.


2 Answers

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.

like image 191
Simon Opelt Avatar answered Oct 26 '22 11:10

Simon Opelt


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.

like image 35
David Makogon Avatar answered Oct 26 '22 11:10

David Makogon