farmer icon indicating copy to clipboard operation
farmer copied to clipboard

Upload files to VM

Open Thorium opened this issue 5 years ago • 3 comments

VMs

  1. 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 avatar Jul 01 '20 15:07 Thorium

@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?

isaacabraham avatar Jul 04 '20 13:07 isaacabraham

I was thinking of uploading non-script files, like a certificate and a web-server root folder (or zip).

Thorium avatar Jul 04 '20 14:07 Thorium

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.

isaacabraham avatar Jul 05 '20 09:07 isaacabraham

Closing due to inactivity

Tom-Sloboda avatar Jun 02 '23 09:06 Tom-Sloboda