There is a VM scale set running with Centos 7 custom image. Required to run below script as cloud-init script while scaling the VM Scale set. But VM scaled, the script not executed. From the server also not able to locate the execution history. This is the command I used,
#cloud-config
runcmd:
– cd /srv/compose/composeforsvaret/
– docker-compose stop
- docker-compose up -d
final_message: "Your Docker server is now ready."