The Web page is created first:
Virtual Cloud Service (ServiceName): Zampdmp-ds
Virtual Network (vnetname): az-dmpnetwork
To create a new DS13, the attachment 800G Disk PowerShell command is as follows:
New-azurestorageaccount-storageaccountname "Zampdmpds"-location "China East"-type "Premium_lrs"
Set-azuresubscription-subscriptionid 6fd78691-51f4-4087-a821-f******-currentstorageaccountname Zampdmpds
$VMImage = Get-azurevmimage-imagename f1179221e23b4dbb89e39d70e5bc9e72__openlogic-centos-67-20160415
New-azurevmconfig-name zampdmp-20-instancesize standard_ds14-imagename $VMImage. ImageName | Add-azureprovisioningconfig-linux-linuxuser azureuser-password "adag****" | Set-azuresubnet Subnet-1 | New-azurevm-servicename zampdmp-ds-vnetname az-dmpnetwork-location "China East"
Get-azurevm-name Zampdmp-20-servicename Zampdmp-ds | ADD-AZUREDATADISK-CREATENEW-DISKSIZEINGB 800-disklabel Verticassd01-lun 0-hostcaching None | Update-azurevm
Note: The SSD drive created uses LUN 0, starting from 0, incrementally.
Get-azuresubscription "Check the subscription details
Get virtual machine template file command:
Get-azurevmimage
Centos6.7 Template id:f1179221e23b4dbb89e39d70e5bc9e72__openlogic-centos-67-20160415
Delete an empty disk, you can attach to a virtual machine first, then delete the entire virtual machine and the disk, and finally delete the storage space with the following command
Remove-azurestorageaccount-storageaccountname "Dmpssdstorage"
This article comes from "Plum blossom fragrance from bitter cold!" "Blog, be sure to keep this provenance http://daixuan.blog.51cto.com/5426657/1840110
Azure New DS14, attachment 800G Disk PowerShell command