Upload files to VM
VMs
- Transferring files - we could build a post-deploy task to upload files from the local machine onto the VM. The pure ARM way is to upload files into a storage account first and then reference them in the ARM template. However, this requires a storage account to have been already created and the files uploaded. An alternative is to upload via Azure CLI or SSH - again, Farmer could wrap this up; it's what we do for app service.
Originally posted by @isaacabraham in https://github.com/CompositionalIT/farmer/issues/259#issuecomment-651811553
@Thorium this is now supported through the upload_script_files feature - requires that the file is accessible publicly. I take it you want to upload files from local storage?
I was thinking of uploading non-script files, like a certificate and a web-server root folder (or zip).
The "script files" is a bit of a misleading term. It can be any file you want. The idea is that you can access them from any script that you run as part of the deployment process - so you could use it to upload files as part of the deployment and then use the script to copy the files to the appropriate part of the file system etc.
Closing due to inactivity