This script demonstrates how to script the CLI from a batch file to encrypt data disks on a Linux VMSS. Although written as a batch file, similar steps can be performed from bash.
Be aware this script accesses resources in your current default subscription. To avoid polluting the wrong subscription with these resources, it is suggested to quickly check and make sure the correct subscription is being used:
az account show