Windows Azure Platform Family of articles Catalog
Prerequisite Requirements:
1. Suppose that the author captures an Azure virtual machine template named Leistorage
For azure virtual machine templates, see:
2. In Azure PowerShell, do the following:
#Select Current SubscriptionAdd-azureaccount-Environment Azurechinacloud#Select your current storage account and proceed slightlySet-azuresubscription-subscriptionname ' [Subscriptionname] '-Currentstorageaccount ' [Storagename] '#based on the virtual machine template name, fuzzy query$imageList= get-Azurevmimage '| where {$_. ImageName-like "*leistorage*"}$image=$imageList[0]#Create a new azure Virtual machine#VM name is LEI20151209VM#Cloud Service for LEI20151209SC#Virtual Network name is Leitestvnet#Subnet name is Subnet-1#Private IP is 10.0.0.10New-azurevmconfig-name"LEI20151209VM"-instancesize"A7"–imagename$image. ImageName | Add-azureendpoint-name"RDP"-protocol"TCP"-publicport 3386-localport 3386 | Set-azuresubnet-subnetnames ' Subnet-1 ' | Set-azurestaticvnetip-ipaddress ' 10.0.0.10 ' | New-azurevm-servicename"LEI20151209SC"-vnetname ' Leitestvnet '-location"China East"
Azure PowerShell (11) Use the custom virtual machine image template to create an azure virtual machine and bind the public IP (VIP) and intranet IP (DIP)