matterai
matterai

Reputation: 3438

VMSS scale up with booting executable after launch

I have VM scale set for my Azure ServiceFabric Application deployed in Azure. I need to run RabbitMQ server on each virtual machine in my VM scale set when it starts (especially actual when I am going to scale up my cluster and new VM is going to be created). In other words I want make queue run automatically. Are there any possibilities to do the next steps after VM has been launched:

I guess this issue can be solved with virtual machine scale set Automation Script, but I am not sure. Any ideas and suggestions?

Upvotes: 1

Views: 220

Answers (1)

sendmarsh
sendmarsh

Reputation: 1066

You could do this using a VM custom script extension. An extension runs on every new VM when a scale set is deployed or when it scales out. Your extension could do the checks, install and run, and perhaps create a service so RabbitMQ runs if the VM is rebooted etc. The following articles provide more details on deploying apps with scale sets: Deploy your application on virtual machine scale sets How are Applications deployed on VM Scale Sets?

Upvotes: 2

Related Questions