alan-turing-institute / data-safe-haven

https://data-safe-haven.readthedocs.io
BSD 3-Clause "New" or "Revised" License
58 stars 15 forks source link

DSG Deployment Automation #201

Closed james-c closed 4 years ago

james-c commented 5 years ago

Target for April DSG 2019

Do later

Still to triage

From Validate Feb 2019 Azure runbook #174

martintoreilly commented 5 years ago

From the Python CLI, the command to run remote scripts on a VM is az vm run

martintoreilly commented 5 years ago

For VNET peering look at this ARM template

martintoreilly commented 5 years ago

For running scripts as part of the deployment of a VM, look at custom script extensions (windows) or cloud init

martintoreilly commented 5 years ago

Where some steps take a long time (e.g. installing software), we should consider splitting the build and deploy stages as we do for the Linux Compute VMs, building an image and storing it in an image Gallery.

martintoreilly commented 5 years ago

Regarding internet access during setup and locking down the environment afterwards, look at what we do when deploying the Linux compute VMs. I think we programatically bind the VM to the locked down NSG to another.

In general, I think the ideal deployment model for all VMs (including the compute ones) would be:

martintoreilly commented 5 years ago

@james-c I'm thinking the big picture for the end goal of this automation is to make sure that everything used in the DSG deployment relies only on scripts in source control. i.e. have all the scripts that run locally on deployed VMs in source control and then push them to the VMs on deployment and run them remotely with cloud-init / custom script extensions (or SCP + az vm run if necessary).

martintoreilly commented 5 years ago

@RobC-CTL Is there anything sensitive in the CreateADPDC.zip folder in the RG_DSG_ARTIFACTS -> dsgxartifacts -> Blobs -> dsc storage container? I'd like to move it into source control in this repo (which will eventually be public).

RobC-CTL commented 5 years ago

@martintoreilly Nothing sensitive

martintoreilly commented 5 years ago

@RobC-CTL Just checking that the DSG DC, RDS and Dataserver zip files in the Scripts folder of the RG_DSG_ARTIFACTS -> dsgxartifacts -> configpackages share also son't have anything sensitive and can be added to source control.

RobC-CTL commented 5 years ago

@martintoreilly they are just PS scripts, there is mention of the domain name but other than that there isn't anything too sensitive.

jemrobinson commented 4 years ago

@martintoreilly : is there anything left here that hasn't been captured in a dedicated issue?

martintoreilly commented 4 years ago

Happy to close this. Lots of it is done, lots is captured in other issues, some no longer relevant. If any of what's left is important enough we'll think of it again.

martintoreilly commented 4 years ago

@jemrobinson I'm not up to speed with the new label system. Is this part of our transition to a DevOps model? Let me know what I should be updating.