For Linux,
user_data field to provide a
cloud-init script
in base64 to apply configurations to the instance.username and password to create a new user.password is provided, it is set as the password for the default user of the image.user_data is ignored when the password is specified.
For Windows,user_data field to provide a
cloudbase-init script
in base64 to create new users on Windows.password field to set the password for the ‘Admin’ user on Windows.user_data.username cannot be specified in the request.