Hello,
I'm trying to understand something about creating a vm with a custom image (https://docs.microsoft.com/en-us/azure/virtual-machines/linux/tutorial-custom-images). If I just 'capture' the image from a vm without deprovisioning or any other step, the simple creation of a vm from this custom image works. However, when I deprovision with $sudo waagent -deprovision+user -force, which is the recommended way, the behavior is a bit puzzling. A new vm created from this custom image includes the updates (e.g. newer kernels) but the disk is empty, no file or software is loaded into the new vm. This happens whether the image is simply captured from the portal or using the CLI commands. Thanks.
I'm trying to understand something about creating a vm with a custom image (https://docs.microsoft.com/en-us/azure/virtual-machines/linux/tutorial-custom-images). If I just 'capture' the image from a vm without deprovisioning or any other step, the simple creation of a vm from this custom image works. However, when I deprovision with $sudo waagent -deprovision+user -force, which is the recommended way, the behavior is a bit puzzling. A new vm created from this custom image includes the updates (e.g. newer kernels) but the disk is empty, no file or software is loaded into the new vm. This happens whether the image is simply captured from the portal or using the CLI commands. Thanks.