question

SSoumya-8574 avatar image
0 Votes"
SSoumya-8574 asked ·

Which App can I use to install packages on instances in vmss of linux on daily basis?

I want to execute a script which has code to install Anti virus like ClamAV on the instances present in the virtual machine scale set. That script should be executed on the newly auto scaled instances too using logic of Azure function. For this I need an Azure function to perform my task. Can anyone suggest me which Function can I use to achieve the task?

azure-virtual-machines
· 5
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

You can consider using Custom script extension to execute a scripts on VM's.

This extension is supported for both windows and Linux nodes.
Detailed documentation is here.

Also let us know why you want to do that using Azure functions

0 Votes 0 · ·

Tried using Custom script extension , but wasted my time. As AKS doesn't support CSE, I cannot use it. So I am trying to find an alternative way.

0 Votes 0 · ·

If you are trying out with AKS, Can you try using daemonsets in AKS?


0 Votes 0 · ·
Show more comments

1 Answer

Cerulean2018 avatar image
1 Vote"
Cerulean2018 answered ·

Use webhook action for alert when new instances is provisioned to install the antivirus.

You can either place the action to install the package when alert is received on new instance is created.
Or you can use a logic app as when when an alert is generated for a new instance creation to install the antivirus.

· 1 · Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.