@Daniel Månsson Containers do not have a kernel and instead use container shims on the container engine to make kernel calls on the host machine. Hence the container's file system cannot be used to make a disk image that can successfully boot a virtual machine, because it will have no kernel.
Instead you can mount an Azure File Share volume on an ACI to store data that you want to be persistent and mount the same Azure File Share to your Azure Linux VM to share required data from ACI to Azure VM.
Hope this helps!!!
Please "Accept as Answer" if it helped, so that it can help others in the community looking for help on similar topics.