sg3-141-592 / AzStartStop

Self service user interface for starting and stopping VMs on demand
https://vmstartstopdemo.compactcloud.co.uk/
MIT License
22 stars 2 forks source link

Adding deployment copying behaviour #13

Closed sg3-141-592 closed 1 year ago

sg3-141-592 commented 1 year ago

Currently the file for the WEBSITE_RUN_FROM_PACKAGE setting is hosted by me, and because this app needs to run on a regular schedule it's taking a lot of bandwidth (£11.45 a month, but that cost will scale linearly with more users).

This change adds a new ARM template that takes a copy of the deployment file, adds it to blob storage and generates a Sas token for the WEBSITE_RUN_FROM_PACKAGE function app setting. This means that users host their own deployment.

This change also adds a daily scheduled function check_for_updates() that keeps the App deployment up to date.

image