Azure Automation

Ian Rawlings 1 Reputation point
2022-09-05T12:28:56.727+00:00

I'm looking to create an azure automation to stop and start a single VM, in short a simple task but i have to ask WHY the creating is dont by excluding all the vm's you don't want to automate?
I have 1 VM to automate yet i have to exclude many.
Would the the most intuitive method be to include? forgetting to exclude would be disastrous to a critical vm it also creates an addition overhead each time to create a new vm as it will automatically be included in all the automation jobs at point of creating it wont be in the 'exclude', and there could be many automation jobs to add it to?

Or am i missing something?

Azure Automation
Azure Automation
An Azure service that is used to automate, configure, and install updates across hybrid environments.
1,111 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Maxim Sergeev 6,566 Reputation points Microsoft Employee
    2022-09-05T18:02:09.253+00:00

    Hi @Ian Rawlings ,

    If you don't need to automate multiple VMs, just only one, use the Auto-Shutdown in Tasks capability of VMs.

    https://learn.microsoft.com/en-us/azure/logic-apps/create-automation-tasks-azure-resources

    237898-screenshot-2022-09-05-105453.png

    0 comments No comments