This just put together when debugging Bug 1611074
Things to test
-
upgrade-resize
-
clean image (simulated)
- upgrade
- clean /etc/fstab of any entry
- simulate-first-boot
-
upgrade-reboot-resize
This is present as it gets the /etc/fstab entry fixed before going into a resize. May not be necessary.
-
swap LP: #1642383
- launch an instance with user-data from bug
- upgrade
- simulate-first-boot
rgname="bug1611074" # resource group name
vmname="bugtest1"
azure config mode arm
azure vm quick-create $rgname $vmname centralus linux \
Canonical:UbuntuServer:16.04.0-LTS:latest $USER \
-M ~/.ssh/id_rsa.pub -z Standard_D1
azure vm set $rgname $vmname --vm-size=Standard_D1_v2
Sizes can be: Standard_D1 Standard_D1_v2 Standard_D2 and others.