Start/Stop VMs v2 - how to enable for VMSS

Lars 46 Reputation points
2022-07-19T09:00:49.27+00:00

I have found this Azure function which can start and stop VMs based on a schedule or the actual CPU load.
https://learn.microsoft.com/en-us/azure/azure-functions/start-stop-vms/overview?source=docs#feedback
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.
5,123 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.
410 questions
0 comments No comments
{count} vote

Accepted answer
  1. MayankBargali-MSFT 70,536 Reputation points
    2022-07-20T05:39:52.217+00:00

    @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.

    1 person found this answer helpful.

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.