This script shutdowns/starts VMs by a given resource group name in sequence.
An Azure Automation account with System Assigned Managed Identity with the correct permissions is required for this to work correctly. You can read more about System Assigned Managed Identity here https://learn.microsoft.com/en-us/azure/automation/enable-managed-identity-for-automation
TechNet gallery is retiring! This script was migrated from TechNet script center to GitHub by Microsoft Azure Automation product group. All the Script Center fields like Rating, RatingCount and DownloadCount have been carried over to Github as-is for the migrated scripts only. Note : The Script Center fields will not be applicable for the new repositories created in Github & hence those fields will not show up for new Github repositories.