Create New-AzureVM

This script performs the following operations:

1. The script selects your subscription so that any Microsoft Azure cmdlet that is executed afterward runs against the correct subscription. 
2. The script then updates your subscription to specify the CurrentStorageAccountName property, which is really just a shortcut so you do not have to specify the storage account to use with each call. 
3. The script returns the name of the latest image for the Server 2012 R2 Datacenter image family. This image name is required to tell the Microsoft Azure PowerShell cmdlets which image to use. 
4. The script creates a new virtual machine named ps-vm1 by using the New-AzureQuickVM cmdlet. This cmdlet also creates the cloud service container for the virtual machine. 
5. The script creates a new virtual machine configuration for a virtual machine named ps-vm2. This configuration has one data disk added and two network endpoints (HTTP and HTTPS). 
6. The New-AzureVM cmdlet actually creates the ps-vm2 virtual machine and, by omitting the -Location parameter, creates the virtual machine in the same cloud service as ps-vm1.