@Mark Whitney Apologies in delayed response.
If you specify data disks in the VMSS model, the scale set will track and delete those scale set data disks with the instance. We don't have a way of overriding that from the control plane.
Below are work arounds for retaining the disks related to VMSS:
- You can "manually" create standalone disks in your subscription outside the vmss lifecycle, and then attach them to instances. Then you have full control over those disks. See for example az vmss disk
- You can create a snapshot of a VMSS disk (OS or data disk). You could use a terminate notification to trigger snapshotting the disk right before you delete. There would be some automation on your part to reattach those to a new scale set.
Hope this helps.
Please 'Accept as answer' if the provided information is helpful, so that it can help others in the community looking for help on similar topics.