Forum Discussion
santoshavvari
May 09, 2021Copper Contributor
Azure ARM template - Multi line bash script
Hi, Greetings!!! I would like to include the following bash scripts as a startup script for a VM. I am creating the VM using ARM template. I would like to know the syntax to use to include thi...
pazdedav
May 14, 2021Steel Contributor
Have you considered saving that script in e.g. GitHub and referring to it in your template, as described here? https://docs.microsoft.com/en-us/azure/virtual-machines/extensions/custom-script-linux#template-deployment
Alternatively, you could leverage two other options for initial VM configuration:
- cloud-init - link
- config management tools like Ansible, Chef, etc.