In order to save expenses in Azure DevOps, I’m trying to scale the resources, which can scale depending on the requirement. Team leads will update the resource requirements in SharePoint, and the runbook needs to be executed with SharePoint datat. Team leads will update the resource requirements in SharePoint, and the runbook needs to be executed with SharePoint data. If such resources are not required on weekends but must be operational on weekdays, they should be stopped or reduced in size. I need to use automation to do it for all of the VMs and App Services at a subscription level every Friday. If there is a method to automate this procedure using PowerShell.
I’m glad to receive input. Thanks in advance.
I’m looking for feedback on Start/Stop VMs and Scaling Azure App Services. On weekends, the same may be said for other relevant resources. How can we accomplish this with Azure PowerShell?
2
Answers
The best way to do is by using ‘Azure Automation Runbook’ scheduled to run every specified day or date by time. To target the VM’s, Azure Tags will be much helpful.
Your script must check:
Auto-Shutdown option is also available to do this activity.
Because sometime all you need is a quick and dirty way to save money :
And if you wan’t to build something there’s an API to shutdown and start VMs