Azure Extension script for linux

前端 未结 2 656
野的像风
野的像风 2021-01-22 07:25

I am trying to execute multiple shell scripts by separating each command using \'&&\' using Azure Custom Extension script for Linux.

ARM templates is the deploy

2条回答
  •  时光取名叫无心
    2021-01-22 07:39

    ARM template Snippet

    cmdToExecute = script1.sh param1 param2 && script2.sh param1 param2 && script3.sh is passed as a string to a wrapper script like

    "commandToExecute" : "[concat('sh script_executor.sh \"', parameters('cmdToExecute') '\"')]"
    

    script_executor.sh -- takes all commands as parameters and executes each command

提交回复
热议问题