/update-management-turn-off-vms

This is an example script for Update Management pre/post actions. It stops VMs which were started to install updates. It must be used in conjunction with UpdateManagement-TurnOnVMs. It requires the module "ThreadJobs"

Primary LanguagePowerShellOtherNOASSERTION

Update Management - Turn Off VMs

This script is intended to be run as a part of Update Management Pre/Post scripts.

It requires the ThreadJobs modules from the PowerShell gallery.

UpdateManagement-TurnOffVms.ps1 uses Az cmdlets and System Managed Identity.

It uses Turn On VMs script as a pre-deployment script.

This script will ensure all Azure VMs in the Update Deployment are turned off after they recieve updates.

This script reads the name of machines that were started by Update Management via the Turn On VMs script

 

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.