Start/Stop VMs v2 - how to enable for VMSS

Lars 41 Reputation points

I have found this Azure function which can start and stop VMs based on a schedule or the actual CPU load.
This is working fine for my single VMs but the main point why I wanted to have this is for our Virtual Machine Scale Set VMs.

In the Azure function I have included the RG where the VMs and the VMSS are deployed. But when I run the function it will only affect the single VMs.
I also tried to enter the VMSS via the VMLists attribute, but that did not work either.

Is there a specific way how I can include the VMSS VMs to also be part of the Azure function or can they not be implemented into this?
And if not what can I use to manage this VMSS so that I can define an automatic start and shutdown?

Azure Functions
Azure Functions
An Azure service that provides an event-driven serverless compute platform.
3,985 questions
Azure Virtual Machine Scale Sets
Azure Virtual Machine Scale Sets
Azure compute resources that are used to create and manage groups of heterogeneous load-balanced virtual machines.
332 questions
0 comments No comments
{count} votes

Accepted answer
  1. MayankBargali-MSFT 66,336 Reputation points

    @Lars Thanks for reaching out. As per the discussion here on startstopv2-deployments repository unfortunately it is not supported right now. Feel free to provide your feedback/feature request on repository here

    Currently our solution doesn't support VMSS. We are planning to work on this sooner. I will update the public doc when it is ready.
    We have to wait for the feature to get added. As of now, this is not supported and there isn't another way to achieve this.

    Please 'Accept as answer' and ‘Upvote’ if it helped so that it can help others in the community looking for help on similar topics.

    0 comments No comments

0 additional answers

Sort by: Most helpful