0

I have a bash script in an azure storage account and I want to call that script from an Azure VMSS, when a new version of the script is available. Is this possible?

Thanks

user989865
  • 627
  • 3
  • 9
  • 25

1 Answers1

0

Custom Script Extension can be used to run the script in VMSS.

The Custom Script Extension downloads and executes scripts on Azure virtual machines. This extension is useful for post deployment configuration, software installation, or any other configuration or management tasks. Scripts can be downloaded from Azure storage or GitHub, or provided to the Azure portal at extension run time. The Custom Script Extension integrates with Azure Resource Manager templates, and can be run using the Azure CLI, PowerShell, Azure portal, or the Azure Virtual Machine REST API.

It can be called on Virtual Machine Scaleset using Add-AzVmssExtension

Ansuman Bal
  • 9,705
  • 2
  • 10
  • 27
  • Again, as I mentioned in your other answer, please stop asking people to upvote/accept your answers. Also, the question here is off-topic: it's essentially a yes/no question and unrelated to programming; maaaaaybe it fits on SuperUser or ServerFault? But without more detail, it's difficult to know. But your answer essentially a link to documentation, and not a specific solution to anything. – David Makogon Jun 28 '21 at 14:53