0
votes

I am applying multiple artifacts to my VM which I spawned up in DevTestLabs.

One of the artifacts leads to restarting the computer. How do I ensure that the rest of the artifacts get applied only after the restart?

1

1 Answers

1
votes

If artifacts lead to restarting of the machine, it applies only after completion of restart. If one artifact requires restart, then remaining will continue after restart.

Azure VM Custom Script Extension doesn’t handle rebooting. You must setup scripts to be executed before and after the reboot. If possible, force the program that will be installed by the artifact to not restart, and then in the script, force a machine restart as the last step of the artifact. Managing the reboot in this way sets up a more consistent state for the next artifact and easier debugging when dealing with multiple artifacts being executed.

Hope this helps.