Create a VM image in Azure

Create Image

  1. Execute following instruction in your VM

     $ sudo waagent -deprovision
    
  2. 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.

comments powered by Disqus