Why not deploying a VM, configure it the way want, upload files(s) and then create a template from that VM? I really don’t know if you can upload a file while creating a vm… you can run stuff from a bash script so I suppose instead of uploading, you could download that file from somewhere…