Are the custom script extensions specified in the ARM templates installed every time the VM reboots?

I used the sample template in the link below to create a virtual machine with a custom script extension:

https://github.com/Azure/azure-quickstart-templates/tree/master/201-vm-custom-script-windows

If I stop and start the virtual machine from the azure portal, then the custom script extension starts at startup. But if I restart the VM from the virtual machine (by selecting "Reboot" from the "Start" menu), the custom script extension will not start. Why not create a custom script extension when restarting the VM from the virtual machine? Are custom script extensions executed only when the virtual machine starts from the release state?

When working with sets of VM scales, if I release the selection and then run one virtual machine in the scale specified from the Azure portal, the custom script extension for this virtual machine will not be executed. But if I free and run the entire set of scales from the Azure portal, a custom script extension will execute for each virtual machine.

+4
source share
2 answers

Azure script Azure VM script, Azure VM. script , , , Azure , VM , script . Azure (), . .
, timestamp script , .
.

+7

. ​​( ), , script .

script - VM.

IP-. , DNS .

0

Source: https://habr.com/ru/post/1666203/


All Articles