How to expand Azure VM OS Disk
There are three main disk roles in Azure: the data disk, the OS disk, and the temporary disk.
1. OS Disk
– az vm deallocate --resource-group KAY-RG --name KUbuntu
– az disk list --resource-group KAY-RG --query '[*].{Name:name,Gb:diskSizeGb,Tier:accountType}' --output table
– az disk update --resource-group KAY-RG --name KUbuntu_OsDisk_1_eaf9064ce3194d659e3105a989da72fa --size-gb 200
– az vm start --resource-group KAY-RG --name KUbuntu
Do not execute command 'az vm stop' before 'az vm deallocate', that will make omagentforlinux extension keep transioning state.
2. Temporary Disk
– Navigate to VM
– Click Size Settings.
– Choose different VM Size
– Click Resize
3. Data Disk
– Navigate Disks Settings.
– Click +Add data disk
After operation, connect to VM, use command 'df -h' to check result.
轉(zhuǎn)載于:https://www.cnblogs.com/seeken/p/10716782.html
總結(jié)
以上是生活随笔為你收集整理的How to expand Azure VM OS Disk的全部內(nèi)容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: Centos7安装docker与dock
- 下一篇: redis集群搭建及设置账户(转)