As usual at the end of each chapter, we get our hands dirty with automation.
Automating the tasks
Creating an Azure VM using PowerShell
Creating an Azure VM is one of the most common tasks on Azure, so let's get started.
First off, let's create the resources that make up the VM, and let's kick off with network resources.
Network resources
Every VM requires some network resources to be able to function properly, such as a subnet, virtual network, public IP address, and network security group (NSG), as shown in the following cmdlets:
$Subnet = New-AzureRmVirtualNetworkSubnetConfig...