when usingAzurevirtual machine process, you inevitably encounter some applications to the diskIOPSvery high requirements, for highIOPSrequired applications that we had before only through theWindowsSystem Level CreationRAIDthe way to improve disk performance, in factAzurePremium Storage Premium Storage in the first half of this year has been formally launched to the majority of users, the highlight isPremium StorageService AdoptionSSD, and can bring the highest32TBstorage capacity and eachVMSup to64000 IOPS (i.e. per secondIONumber of Operations).
in the Azure Portal now is not supported by the graphical interface to create Premium Storage , so I'm going to show you this chapter:
Use PowerShell to create premium storage accounts;
create on this premium storage account DS series of virtual machines;
the premium storage disk P10 Attach to DS on the virtual machine;
DS series virtual machine prices can refer to d Series virtual machines, with d ds series virtual machines can only be built in Premium Storage on!
1 , use the following command to create a name of Wangzhxprestor01 storage Account, located in eastern China, with redundancy set to LRS
New-azurestorageaccount-storageaccountname "Wangzhxprestor01"-location "Chinaeast"-type "Premium_lrs"
650) this.width=650; "width=" 976 "height=" 595 "title=" QQ picture 20151204122156.png "Style=" width:719px;height:416px;float : none; "src=" Http://s1.51cto.com/wyfs02/M01/77/07/wKioL1ZhRRKihYxiAACexJqBJ2s110.png "alt=" Wkiol1zhrrkihyxiaacexjqbj2s110.png "/>
in the Azure Portal You see that the storage account has been created successfully
650) this.width=650; "Width=" 1157 "height=" 438 "title=" QQ picture 20151204123117.png "style=" WIDTH:717PX;HEIGHT:177PX; Float:none, "src=" Http://s5.51cto.com/wyfs02/M02/77/08/wKiom1ZhRKng1VU0AACNjcJFHmc069.png "alt=" Wkiom1zhrkng1vu0aacnjcjfhmc069.png "/>
2 , creating DS Series Virtual Machines
use the following command to specify the storage name, account, password, cloud service, Virtual machine name Specification , and new VMS
$storageAccount = "Wangzhxprestor01"
$adminName = "Wangzhx"
$adminPassword = "Wangzhx123"
$vmName = "WANGZHXPSVM01"
$servicename = "WANGZHXCLOUD01"
$location = "China East"
$imageName = "0C5C79005AAE478E8883BF950A861CE0__WINDOWS-SERVER-2012-ESSENTIALS-20131018-ZHCN"
$vmSize = "Standard_ds2"
$OSDiskPath = "https://" + $storageAccount + ". blob.core.chinacloudapi.cn/vhds/" + $vmName + "_os_pio.vhd"
$VM =new-azurevmconfig-name $vmName-imagename $imageName-instancesize $vmSize-medialocation $OSDiskPath
ADD-AZUREPROVISIONINGCONFIG-WINDOWS-VM $vm-adminusername $adminName-password $adminPassword
New-azurevm-servicename $servicename-VM $VM-location $location
not much to say here, to get AZUREVM Mirror Available (Get-azurevmimage). ImageName Command
650) this.width=650; "Width=" "height=" 1010 "title=" QQ picture 20151204132905.png "style=" WIDTH:718PX;HEIGHT:717PX; Float:none, "src=" Http://s2.51cto.com/wyfs02/M00/77/07/wKioL1ZhRRagC4E-AAKJRDQjdbM767.png "alt=" Wkiol1zhrragc4e-aakjrdqjdbm767.png "/>
There will often be an error here,
New-azurevm:currentstorageaccountname is not accessible. Ensure the current storage accountis accessible and in the same location or affinity group as your cloud service
to check the cloud service, the storage location is China East there should be no problem, but it will still report this mistake,
Generally this situation is probably because you have multiple Subscription cause, to be specified once by the command
$SubScriptionName = "Windows Azure Enterprise Trial"
$storageAccount = "Wangzhxprestor01"
Set-azuresubscription-subscriptionname $SubScriptionName –currentstorageaccount $StorageAccount
OK , then go Portal Take a look. VMS do you want to finish creating
3 , as you just created. DS Series virtual machines Attach premium storage P10
$storageAccount = "Wangzhxprestor01"
$servicename = "WANGZHXCLOUD01"
$vmName = "WANGZHXPSVM01"
$VM = Get-azurevm-servicename $servicename-name $vmName
$LunNo = 1
$path = "http://" + $storageAccount + ". blob.core.chinacloudapi.cn/vhds/" + "mydatadisk_" + $LunNo + "_p10.vhd"
$label = "Disk" + $LunNo
Add-azuredatadisk-createnew-medialocation $path-disksizeingb 126-disklabel $label-lun $LunNo-hostcaching ReadOnly- VM $VM | Update-azurevm
650) this.width=650; "Width=" 958 "height=" 477 "title=" unnamed picture 1.png "style=" Width:677px;height:277px;float:none; "src=" Http://s5.51cto.com/wyfs02/M00/77/08/wKiom1ZhRTTBfM97AACQ6wFu-fc627.png "alt=" Wkiom1zhrttbfm97aacq6wfu-fc627.png "/>
Then format the disk from the system disk Management
650) this.width=650; "Width=" 1055 "height=" 756 "title=" 2.png "style=" Width:625px;height:468px;float:none; "src=" http ://s2.51cto.com/wyfs02/m01/77/07/wkiol1zhrzqds29caaggaooqcnq747.png "alt=" wkiol1zhrzqds29caaggaooqcnq747.png "/ >
OK done!
This article is from the "Arvin Technology blog" blog, make sure to keep this source http://arvinwang.blog.51cto.com/345018/1719610
Azure Technology 08-Virtual machines-create high-performance storage and create DS-series virtual machines