title: Pass parameters to --custom-data Cloud Init script using az cli
body: <p>Is there a way to pass parameters to the cloud init script? Trying to achieve something like this:</p>
  
  <p><code>az vm create ... --custom-data myscript.yml param1 param2</code></p>
  
  <p>Obviously it is possible to use variables from an ARM template like here: <a href="https://github.com/Azure/iotedge-vm-deploy/blob/master/cloud-init.txt#L44" rel="nofollow noreferrer">https://github.com/Azure/iotedge-vm-deploy/blob/master/cloud-init.txt#L44</a></p>