Hi Travis,
You can use cloud-init custom data to modify vm provisioning. For example, I just did quick test by using below on Advanced tab when creating VM in portal:
#cloud-config
device_aliases: {'ephemeral0': '/dev/sdb'}
disk_setup:
ephemeral0:
table_type: mbr
layout: True
overwrite: False
fs_setup:
- label: ephemeral0
filesystem: ext3
device: ephemeral0.1
replace_fs: ntfs
mounts:
- [ ephemeral0, /mnt/resource, auto, "defaults,nofail", "0", "2" ]
Please see result in screenshot:
Configure partitions and filesystems
Cloud-init Overview
https://learn.microsoft.com/en-us/azure/virtual-machines/linux/using-cloud-init
Custom data and cloud-init on Azure Virtual Machines
https://learn.microsoft.com/en-us/azure/virtual-machines/custom-data
Please click Accept Answer and upvote if the above was helpful.
Thanks.
-TP