Azure ARMory: Including customData without a fuss

Include a plain text cloud-init file using secureString variable types and backticks in your Azure ARM template

{
"parameters": {
"customData": {
"type": "secureString"
}
}
}
{
"resources": [
{
"properties": {
"osProfile": {
"customData": "[parameters('customData')]"
}
}
}
]
}
az deployment group create --resource-group Development --template-file template.json --parameters @parameters.json --parameters customData="`base64 -w 0 cloud-init`"

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store