Given the following resource in an AzureRM template, how would one encode the single quote in the commandToExecute
part?
You escape Azure ARM functions in the same way as with VB strings: you simply double the single quote characters.
[concat('This is a ''quoted'' word.')]
outputs
This is a 'quoted' word.
Double quotes still needs to be escaped from JSON.
[concat('''single'' and \"double\" quotes.')]
outputs
'single' and "double" quotes.