Dec 15, 2022 12:00 AM

Azure Function to Bulk Stop and Start Azure Resources in Order

External YouTube Channel

Little bit of fun to stop and start all resources in an Azure subscription in a defined order based on priority tag...

Little bit of fun to stop and start all resources in an Azure subscription in a defined order based on priority tag. This demonstrates also:

✅ Querying resource graph to list resources

✅ Loading a custom module

✅ Defining a function called by Functions

✅ Using timers

In this Video

0:00 - Introduction

0:30 - Priority custom tag on resources

2:08 - Using resource graph to list resources and expand priority tag

4:58 - Adding a custom module

7:48 - Changing the Function timeout

8:25 - Importing in custom module and defining custom function

9:52 - Enabling managed identity and required permissions

11:08 - Timer triggers

12:50 - Code in each Function and walkthrough

15:24 - Close