Garry Bargsley shows us how to provision and build a VM in Azure using nothing but Powershell:
I spent the bulk of my day Wednesday going through the Prelab steps outlined in the lab. I was extremely impressed by this lab and how every step was correct and accurate down to the letter. Then the more I thought about it, the steps are built around using an Azure Virtual Machine. With this you get a common machine, framework and steps to build around. You do not have to worry about the users’ local settings or scenario. You are starting from the exact same point of reference every time. So that was fun to connect via SSH to a Linux machine and install SQL Server 2017 and Docker from the command line. While I know it was easy because someone was telling me what to type, it was still fun to see how the other side (Linux People) live.
Today I was in an adventurous mood to try something new. I had been wanting to put together a PowerShell script that would deploy an Azure Virtual Machine. I started down the path a couple time and got stuck so I lost interest. I thought this was the perfect opportunity to get over the hurdle and combine the Prelab steps in this lab with doing those steps with PowerShell. So below you will find my first go at building an Azure Virtual Machine using PowerShell to replace the manual steps in the Prelab process. Not that there was anything wrong with those steps, I just want to try and use a tool that I have been working to learn and use on a day to day basis. Wish me luck.
Read on for a step-by-step guide.