Building Provisioning Automation for Azure IaaS ARM using PowerShell – Ensuring the latest updates are deployed for your Linux IaaS VMs in Azure
Another helpful Azure extension that is available to ease the post deployment manual patch pains that some Linux flavors require is the ‘OSPatchingForLinux’ extension which can be deployed via ARM json templates or Azure PowerShell. Below is an example of the command, you can find additional samples in the IaaS Deployment script on git.
Set-AzureRmVMExtension -VMName MyVM -ResourceGroupName MyResGr -Location WestUs -Name "OSPatch" -ExtensionType "OSPatchingForLinux" -Publisher "Microsoft.OSTCExtensions" -typeHandlerVersion "2.0" -InformationAction SilentlyContinue -ForceRerun -Verbose