0

I’m writing an Azure Function (nodejs) that will create a VM shutdown schedule on VMs that don’t have one.

I am having an issue however listing schedules. All of the list* methods of the Schedules interface require the labName parameter, however, I don’t have a lab. VM shutdown schedules don’t require a lab.

Checking the actual ARM definition of this VM shutdown schedule there is no labname either: enter image description here

The same issue is true if I try to create such a schedule via the SDK. How do I do this if I don’t have a lab?

sapphiremirage
  • 475
  • 2
  • 17
David O'Brien
  • 813
  • 1
  • 9
  • 18

1 Answers1

2

For whatever reason it wasn't obvious to use this here: GlobalSchedules interface

sapphiremirage
  • 475
  • 2
  • 17
David O'Brien
  • 813
  • 1
  • 9
  • 18