nixos/azure: upload-image names the image better

authored by colemickens.tngl.sh and committed by Jon a5de97f2 c2b2cc6d

+5 -2
+5 -2
nixos/maintainers/scripts/azure-new/upload-image.sh
··· 8 9 group="nixos-images" 10 location="westus2" 11 - img_name="azure-image-todo-makethisbetter" # TODO: clean this up 12 - img_file="$(readlink -f ./azure/disk.vhd)" # TODO: this doesn't feel great either 13 14 if ! az group show -n "${group}" &>/dev/null; then 15 az group create --name "${group}" --location "${location}" 16 fi 17 18 if ! az disk show -g "${group}" -n "${img_name}" &>/dev/null; then 19 bytes="$(stat -c %s ${img_file})" 20 size="30"
··· 8 9 group="nixos-images" 10 location="westus2" 11 + img_name="nixos-image" 12 + img_file="$(readlink -f ./azure/disk.vhd)" 13 14 if ! az group show -n "${group}" &>/dev/null; then 15 az group create --name "${group}" --location "${location}" 16 fi 17 18 + # note: the disk access token song/dance is tedious 19 + # but allows us to upload direct to a disk image 20 + # thereby avoid storage accounts (and naming them) entirely! 21 if ! az disk show -g "${group}" -n "${img_name}" &>/dev/null; then 22 bytes="$(stat -c %s ${img_file})" 23 size="30"