Debug Linux scripts run by Custom Script Extension or Run Command Just log to the vm and go to: /var/lib/waagent/custom-script/download/0