Providing Startup-Configuration using Azure Custom-Data

Adding custom-data to an instance.

Currently, custom-data can only be used on instances deployed using the Azure CLI 2.0.

In order to add custom-data to an instance, the custom-data must be provided as a single-line value with '\n' delimiting newlines.

Use the script to convert your custom-data into this format.


cat $1 | python -c 'import json, sys; print( json.dumps( ) )'

Usage of the script is as follows:

./ user_data.txt

Copy and paste the generated output into the customData value field of the JSON parameters file.