Using cloud-init on an Azure VM to mount a data disk fails
问题 This is a similar problem to a previous SO question, from which I adapted my code How can i use cloud-init to load a datadisk on an ubuntu VM in azure Using a cloud-config file passed through Terraform: #cloud-config disk_setup: /dev/disk/azure/scsi1/lun0: table_type: gpt layout: true overwrite: false fs_setup: - device: /dev/disk/azure/scsi1/lun0 partition: 1 filesystem: ext4 mounts: - [ "/dev/disk/azure/scsi1/lun0-part1", "/opt/data", auto, "defaults,noexec,nofail", ] data "template_file"