Create a VM image in Azure
11 Sep 2017Create Image
-
Execute following instruction in your VM
$ sudo waagent -deprovision
-
Create image by CLI
az vm generalize --resource-group qa-playform-rg --name qa-playform-mns-g-ap-0 az image create --resource-group qa-playform-rg --name qa-playform-mns-g-ap-0-image-0 --source qa-playform-mns-g-ap-0
Please refer to capture-image for the details.
waagent
By default, Azure put WALinuxAgent in your Linux system. You can use waagent
to execute deprovision.
In Ubuntu, it’s package name is walinuxagent.