In any case, the custom script still fails. I eventually ssh-ed into the VM and ran the custom script manually from the command line 😞 Here's what the logs look like now: /var/log/waagent.log ...
Some results have been hidden because they may be inaccessible to you
Show inaccessible results