Sysadmin
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.
Connecting to Azure using Azure PowerShell and a service principal
·466 words·3 mins
Azure PowerShell provides a cross-platform way to manage your Azure resources without actually having to log in to the portal. Obvious benefits here include being able to script away management tasks and speed up administration tasks by using the command line. Microsoft provides some great documentation and installation instructions here: