There are two grub configuration files, one is provided by OS maintainers, and another one is applied as a part of the cloud integration configuration process.
/etc/default/grub/etc/default/grub.d/50-cloudimg-settings.cfg
Where any changes to the latter rewrites any changes made to the former file.
Change the latter file /etc/default/grub.d/50-cloudimg-settings.cfg