Changing the size of an Azure VM using Azure PowerShell
·312 words·2 mins
A few weeks ago, I wrote about how to connect to Azure via PowerShell and a service principal. It’s super useful, and allows us to do things like change the size of a VM.
https://www.stephenwuebker.com/2019/05/30/connecting-to-azure-using-azure-powershell-and-a-service-principal/
In our environment, we need to toggle a VM between sizes on a fairly regular basis. Why? Well, because for some weeks of the month, the workload on that VM is high and we need the performance of a more powerful VM. However, during the rest of the month, the workload is relatively low and we don’t need as many resources, so we’ll reduce the size to save money.