Our setup.sh script for the VMs included the following line:
&& apt-get upgrade -y \
This was (accidentally) causing the script to try to upgrade the agent:
“since your script is running from Microsoft.Azure.Extensions.CustomScript, which is running from walinuxagent, your script triggers a signal to the existing walinuxagent to terminate so it can get upgraded. however, our agent is designed in a way that it waits until all its extensions have finished executing before terminating, so this is a cyclical dependency. what happened in the end is that your script hit a 90 minute timeout configured by Microsoft.Azure.Extensions.CustomScript and died.”
Ubuntu updated the package today.
Which explains why this exact script was working before and why it was taking 90 minutes.
So, the fix will be to blacklist walinuxagent before upgrade script.
Description and Motivation
Our setup.sh script for the VMs included the following line: && apt-get upgrade -y \
This was (accidentally) causing the script to try to upgrade the agent: “since your script is running from Microsoft.Azure.Extensions.CustomScript, which is running from walinuxagent, your script triggers a signal to the existing walinuxagent to terminate so it can get upgraded. however, our agent is designed in a way that it waits until all its extensions have finished executing before terminating, so this is a cyclical dependency. what happened in the end is that your script hit a 90 minute timeout configured by Microsoft.Azure.Extensions.CustomScript and died.”
Ubuntu updated the package today.
Which explains why this exact script was working before and why it was taking 90 minutes.
So, the fix will be to blacklist walinuxagent before upgrade script.
Change type
Checklist:
This change is