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)

Source: Internet
Author: User

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)

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.