alan-turing-institute / learn-azure

Repository for generalised learning materials on Azure
8 stars 2 forks source link

How to install specific software to a Safe Haven VM while deploying it #19

Open fedenanni opened 4 years ago

fedenanni commented 4 years ago

Tim suggested me to repost this from the LwM project board, as others might be interested:

As specified here there are two ways of adding specific software to the VM that is to be deployed.

Software that is only needed in the specific VM

If the software is only needed in the specific VM, you just need to copy the default cloud init file (cloud-init-compute-vm.template.yaml, which is located in deployment/secure_research_environment/cloud_init/) to a file named cloud-init-compute-vm-sre-<SRE ID>.template.yaml in the same folder and add any additional required steps in the SRE-SPECIFIC COMMANDS block marked with comments. See for instance:

Screenshot 2020-04-23 at 10 15 00

The command ./Add_DSVM.ps1 that deploy the VM will first look for a SRE ID specific template, otherwise it will employ the default one.

Software that is generally needed from now on in Safe Haven VMs

If the software will be needed from now on in any Safe Haven VM, this command should be placed in the following part of runcmd, outside of the BEGINNING OF SRE-SPECIFIC COMMANDS box, in the default yaml template: cloud-init-compute-vm.template.yaml