alan-turing-institute / data-safe-haven

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

Gitea mirror creation integration #1997

Open JimMadge opened 2 weeks ago

JimMadge commented 2 weeks ago

Integrate mirror creation in a user friendly way.

This could be,

jemrobinson commented 2 weeks ago

Email is hard from inside Azure - you typically need a SendGrid subscription which you can then link to Azure.

JimMadge commented 2 weeks ago

We could use Azure functions to run a simple script to create mirrors.

A HTTP trigger allows passing variables as HTTP query parameters or in the body of a request.

JimMadge commented 1 week ago

Looking at the Azure Functions docs. It looks like not all plans support virtual networking which I think will be essential for us.

The Consumption plan does not support virtual networking, so I think that is out of the question. Flex Consumption does, and has the nice feature of Consumption that it can scale to 0 instances and bills by usage, but is in preview. Functions Premium and App Service (Dedicated Plan) both mean that at least 1 instance must always be deployed. App Service would likely make sense if we also want to host webapps in the future as they can be hosted on the same resources.

App Service might be the best solution long term then, as we may want to make a little webapp for requesting/approving mirrors.

Billing docs