OSDisk size for Azure Arm Builder

I’m creating an azure linux managed image using Packer. Everything works fine except I can’t seem to increase the size of the os disk.

According to the documentation (https://www.packer.io/docs/builders/azure/arm#os_disk_size_gb) setting that json property should do the trick. I can verify that the azure managed disk is getting created correctly according to that setting. However, when I check the disk in linux (red hat), it doesn’t ever seem to increase.

Here is the output of df -ahT

1594675721,ui,message, rhel78: Filesystem Type Size Used Avail Use% Mounted on
1594675721,ui,message, rhel78: sysfs sysfs 0 0 0 - /sys
1594675721,ui,message, rhel78: proc proc 0 0 0 - /proc
1594675721,ui,message, rhel78: devtmpfs devtmpfs 7.8G 0 7.8G 0% /dev
1594675721,ui,message, rhel78: securityfs securityfs 0 0 0 - /sys/kernel/security
1594675721,ui,message, rhel78: tmpfs tmpfs 7.8G 0 7.8G 0% /dev/shm
1594675721,ui,message, rhel78: devpts devpts 0 0 0 - /dev/pts
1594675721,ui,message, rhel78: tmpfs tmpfs 7.8G 9.1M 7.8G 1% /run
1594675721,ui,message, rhel78: tmpfs tmpfs 7.8G 0 7.8G 0% /sys/fs/cgroup
1594675721,ui,message, rhel78: cgroup cgroup 0 0 0 - /sys/fs/cgroup/systemd
1594675721,ui,message, rhel78: pstore pstore 0 0 0 - /sys/fs/pstore
1594675721,ui,message, rhel78: cgroup cgroup 0 0 0 - /sys/fs/cgroup/memory
1594675721,ui,message, rhel78: cgroup cgroup 0 0 0 - /sys/fs/cgroup/blkio
1594675721,ui,message, rhel78: cgroup cgroup 0 0 0 - /sys/fs/cgroup/hugetlb
1594675721,ui,message, rhel78: cgroup cgroup 0 0 0 - /sys/fs/cgroup/cpu%!(PACKER_COMMA)cpuacct
1594675721,ui,message, rhel78: cgroup cgroup 0 0 0 - /sys/fs/cgroup/pids
1594675721,ui,message, rhel78: cgroup cgroup 0 0 0 - /sys/fs/cgroup/net_cls%!(PACKER_COMMA)net_prio
1594675721,ui,message, rhel78: cgroup cgroup 0 0 0 - /sys/fs/cgroup/perf_event
1594675721,ui,message, rhel78: cgroup cgroup 0 0 0 - /sys/fs/cgroup/freezer
1594675721,ui,message, rhel78: cgroup cgroup 0 0 0 - /sys/fs/cgroup/devices
1594675721,ui,message, rhel78: cgroup cgroup 0 0 0 - /sys/fs/cgroup/cpuset
1594675721,ui,message, rhel78: configfs configfs 0 0 0 - /sys/kernel/config
1594675721,ui,message, rhel78: /dev/mapper/rootvg-rootlv xfs 8.2G 72M 8.2G 1% /
1594675721,ui,message, rhel78: /dev/mapper/rootvg-usrlv xfs 11G 1.5G 8.7G 15% /usr
1594675721,ui,message, rhel78: selinuxfs selinuxfs 0 0 0 - /sys/fs/selinux
1594675721,ui,message, rhel78: systemd-1 autofs 0 0 0 - /proc/sys/fs/binfmt_misc
1594675721,ui,message, rhel78: debugfs debugfs 0 0 0 - /sys/kernel/debug
1594675721,ui,message, rhel78: mqueue mqueue 0 0 0 - /dev/mqueue
1594675721,ui,message, rhel78: hugetlbfs hugetlbfs 0 0 0 - /dev/hugepages
1594675721,ui,message, rhel78: /dev/mapper/rootvg-tmplv xfs 9.5G 34M 9.5G 1% /tmp
1594675721,ui,message, rhel78: /dev/sda2 xfs 494M 119M 375M 25% /boot
1594675721,ui,message, rhel78: /dev/mapper/rootvg-homelv xfs 5.1G 34M 5.0G 1% /home
1594675721,ui,message, rhel78: /dev/mapper/rootvg-varlv xfs 16G 1.3G 15G 9% /var
1594675721,ui,message, rhel78: /dev/sda1 vfat 500M 9.7M 491M 2% /boot/efi
1594675721,ui,message, rhel78: /dev/mapper/rootvg-optlv xfs 15G 580M 14G 4% /opt
1594675721,ui,message, rhel78: /dev/sdb1 ext4 32G 49M 30G 1% /mnt
1594675721,ui,message, rhel78: tmpfs tmpfs 1.6G 0 1.6G 0% /run/user/1000

I’m trying to get more space allocated on the / mount, but no matter how big I set the os_disk_size_gb property, none of the disk sizes actually change. Any ideas?