Provision Scale Set with cloud-init

Simply add a file via --custom-data with the custom code:

az vmss create \
  -n 'vmss-az104' \
  -g 'rg-az104' \
  --instance-count 1 \
  --image 'Win2022Datacenter' \
  --custom-data @clout-init.txt \
  --admin-username 'azureuser' \
  --admin-password 'SecretPassAz104!' \
  --public-ip-per-vm

Example with cloud-init:

<powershell>
$root = $env:SystemDrive
New-Item -path "$root\NewFile.txt"
</powershell>