Right, but that only resized the disk, but not the filesystem. So one needs to boot up the VM, remove the partition, readd it, reboot, resize the fs etc.
“multipass launch 20.04 -v --disk 10G --name testvm” launches a VM with a filesystem which is already 10 GB in size and ready to use.
But there was a problem with it when combined with using -s flag for specifying the storage pool which was fixed in LXD 5.9. These changes should be in the forthcoming LXD 5.0.2 LTS release too.
It can be used to override any device setting, not just disk size.
If you use an image with cloud-init in it the guest will notice the larger disk size on boot and grow the guest filesystem too. Otherwise that needs to be done manually inside the VM, as LXD does not know/dictate what partition layout or filesystem a VM uses.