Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Start/Stop VMs in Azure from Monday to Firday #41

Closed
chandanat opened this issue Dec 1, 2021 · 2 comments
Closed

Start/Stop VMs in Azure from Monday to Firday #41

chandanat opened this issue Dec 1, 2021 · 2 comments

Comments

@chandanat
Copy link

we have on RS having multiple VM, I just want to schedule auto Start and Stop particular VM from Monday to Firday.
Can someone help with this?

@svarga-msft
Copy link
Contributor

Hi, want to understand your situation better. If I understand correctly, you want to schedule to turn all the VMs within a resource group on and off from Monday to Friday? For example, maybe turn all the VMs on at 9am and off at 5pm everyday m-f?

@balas77
Copy link
Contributor

balas77 commented Dec 8, 2021

@chandanat - You can achieve this in few ways via ResourceGroups scope or VMLists scope that you define in the payload. Please do refer the documentation on that.

  • If via RG scope, then you can use ExcludedVMLists to ignore from the action and target only the VMs that you need.
  • If via VM scope, then it's pretty straight that you list the VMs in the payload.

If you want to target set of VMs on different time to start and stop, then you can clone the existing logic app (probably rename this based on the schedule) and have separate one for different timings.

Please do let me know if this helps!

@raldaba raldaba closed this as completed Dec 17, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants