Windows Azure Platform Family of articles Catalog
When we use the Windows Azure Management interface to create an azure virtual machine, the default mounted disk is a fixed size
1. For example, I create 1 Windows Server virtual machines
2. Need to mount additional data disks, at first I initialized the data disk with a capacity of 500G
3. After a period of time, 500GB capacity is not enough, I need to expand this data disk
Note: For Azure A-series and D-Series virtual machines, the amount of disk capacity is calculated. For example, we mount a 1TB data disk, but actually use only 1GB of storage space.
Microsoft will only charge for 1GB of storage space.
So I recommend that when using Azure A-series and D-Series virtual machines, the default mounted data disk directly selects the maximum capacity, which is 1023GB
Note: Virtual machines in the Azure DS series, if you are using premium storage. The maximum capacity for premium storage is charged.
Reference: Windows Azure Virtual Machine (26) using premium Storage and DS series VMS
Before you begin this chapter, ask the reader to prepare:
1.Azure China Account
2. Install Windows Azure PowerShell
The key steps are as follows:
1. Create a Windows Server virtual machine from the Azure management interface
2. Attach 500G empty disk via Azure management interface
3. Initializing an empty disk through a Windows Server Remote Desktop Connection
4. Uninstalling an empty disk via the Azure management interface
5. Run Azure PowerShell as an administrator, reset Azure disk capacity to 1023G
6. Re-attach the disk via the Azure management interface
7. Extending the disk partition through the Windows Server Remote Desktop Connection
1. First we use the Azure management interface (https://manage.windowsazure.cn) to create a new Windows Server VM. Step slightly
2. We attach 500GB of empty disks through the Azure management interface. Such as:
3. From the Azure management interface, view the names of the Azure VM system disks and data disks. Such as:
Note In the disk column, the name of the disk is displayed:
leitest2012chn-leitest2012chn-0-201601220555040066, this is the name of the data disk.
4. We can view the capacity of the operating system disk and data disk for this virtual machine by looking at the name of the storage account where the virtual machine resides. Such as:
As you can see, the system disk capacity of this virtual machine is 127GB and the data disk is 500GB
5. Initialize the empty disk through the Windows Server Remote Desktop Connection. Such as:
6. Then we uninstall this disk through the Azure management interface
7. Run Azure PowerShell as an administrator, reset Azure disk capacity to 1023G
# Login to Azure China and enter your username and password in the pop-up input box Add-azureaccount-Environment Azurechinacloud# Select Current subscription select-azuresubscription- Subscriptionname ' [subscriptionname] '# Modify disk size to 1023GBupdate-azuredisk–diskname ' [DiskName] ' -label ' [Disklabel] '-RESIZEDSIZEINGB 1023
In the DiskName parameter above, we set the name of the disk shown in step 3 above, the red font
leitest2012chn-leitest2012chn-0-201601220555040066
Execution results such as:
8. Then we view the storage account to see the results of the execution:
9. Via the Azure management interface, reattach previously by 500G wide disk. Such as:
10. Additional disks through the Windows Server Remote Desktop Connection, extending the disk partition
On the new volume F, execute right-click, expand Volume.
11. After execution, you can see the F-disk, extended to 1TB
Finally, please note that:
1.Azure virtual machine data disk with a maximum assignable capacity of 1023GB
2.Azure Virtual machine data disks, once scaled up, can no longer be scaled down
Windows Azure Virtual Machine (29) modifies Azure VM data disk capacity