Given the following resource in an AzureRM template, how would one encode the single quote in the commandToExecute part?
I've worked around this with a variable:
"variables": {
"singleQuote": "'",
},
...
"settings": {
"fileUris": [],
"commandToExecute": "[concat('/bin/bash -c ', variables('singleQuote'), 'echo \"export DOCKER_HOST=:2375\" >> /home/', parameters('adminUsername') ,'/.profile', variables('singleQuote'))]",
}
It isn't elegant but it works.