When creating Azure Virtual Machines, custom_data is used to pass start up information into the EC2 instance. This custom_dat must not contain access key credentials.
Sensitive credentials in custom_data can be leaked
Don’t use sensitive credentials in the VM custom_data
The following example will fail the azure-compute-no-secrets-in-custom-data check.
The following example will pass the azure-compute-no-secrets-in-custom-data check.