How To Resize A Virtual Machine In Azure With PowerShell
Azure virtual machines come in all shapes and sizes and it’s not uncommon for the load on the machines to change and therefore it would be good to resize them up or down. Using PowerShell we can do this quickly, easily and in a scaleable way. In this topic, we look at cmdlets like Get-AzureRMVM and Set-AzureRMVM, and build a simple way to get the details, edit them and apply the new sizing to the virtual machine. By the end we will have a function built to do all the repeatable parts, making the process a simple one-liner.
Prerequisites include: Azure VM’s to Resize AzureRM PowerShell Modules Loaded