microsoft / startstopv2-deployments

MIT License
51 stars 29 forks source link

Tag-based schedules #104

Open MikeWedderburn-Clarke opened 1 year ago

MikeWedderburn-Clarke commented 1 year ago

Please add the ability to perform scheduled start/stop based on tag values. In a large organisation with many subscriptions managed by many teams, there are many different schedules. The 3 options I see are:

  1. Those teams would need to constantly message the start/stop team
  2. They would need to be able to submit PRs to add their individual VMs to the appropriate schedule
  3. We need to deploy many copies of this so individual teams can manage their own

Here is a great example of doing this with a json tag: Azure Automation scenario - using JSON formatted tags to create a schedule for Azure VM startup and shutdown

Here is another example of the same request: 96207

lmf-mx commented 10 months ago

Another use case is a downlevel environment that needs to patch outside of development hours when machines are normally off.

What we need is:

  1. To tag VMs to include in daily start/stop for development hours.
  2. A tag for VMs that are handled by Update Manager and need a separate schedule to start them for a weekly off-hours maintenance window to patch.