I'm often creating new VM instances with PowerShell. I always like to use the most recently published template from the Azure marketplace when creating it. If you've ever ran the Get-AzureVMImage powershell cmdlet you'll be overwhelmed with hundreds of choices. This is a quick one-liner to find the most recently published template in the Windows Server 2012 R2 Datacenter family.
↧