Azure – You can now get your virtual machine scale sets to auto-repair
As you know, Azure Virtual Machine Scale Sets let you create a group of identical virtual machine which then will scale up or down to match the...
As you know with Azure Virtual Machine Scale Sets you can create and group identical virtual machines to deliver load balanced and highly available service; the number of virtual machine instances is automatically increased or decreased to match the demand.
You may also know that the operating system of each virtual machine part of a scale set can be automatically updated but this did not cover custom operating system image (see https://docs.microsoft.com/en-au/azure/virtual-machine-scale-sets/shared-image-galleries).
Well, good news, this automatic update for custom images is now available.
The process is the same than for ‘standard’ operating system images, with the same limitations:
Then you can enable the automatic update capability using either Azure Cli or Azure PowerShell (remember you can use Cloud Shell to execute the command) for each subscription you want to get it enabled:
Register-AzProviderFeature -FeatureName AutomaticOSUpgradeWithGalleryImage -ProviderNamespace Microsoft.Compute
Register-AzResourceProvider -ProviderNamespace Microsoft.Compute
Then you can enable the automatic update on your scale set
Update-AzVmss -ResourceGroupName “<resource group where is located your scale set>” -VMScaleSetName “<your virtual machine scale set>” -AutomaticOSUpgrade $true
az feature register –namespace Microsoft.Compute –name AutomaticOSUpgradeWithGalleryImage
az provider register –namespace Microsoft.Compute
Then you can enable the automatic update on your scale set
az vmss update –name “<your virtual machine scale set>” –resource-group “<resource group where is located your scale set>” –set UpgradePolicy.AutomaticOSUpgradePolicy.EnableAutomaticOSUpgrade=true
The first time, it can then take up to 2 hours for a scale set to get the first rollout; subsequent updates will be applied quicker.
As you know, Azure Virtual Machine Scale Sets let you create a group of identical virtual machine which then will scale up or down to match the...
As you know you can add extensions (small applications that provide post-deployment configuration and automation tasks) to your virtual machine...
As you know, recent physical devices come with embedded security feature to help protect the operating system; features like TPM chipset or secure...