Step-by-Step: How to update an Azure Linux VM using Update management

Published Jul 22 2021 12:01 AM 3,404 Views
Senior Member

Operating system updates include feature updates, bug fixes, and security improvements and are important to update periodically. This applies to desktop computers as well as servers. There are many tools available to manage the Windows update process. When it comes to Linux however, most struggle as few tools support Linux system updates. Luckily in Azure, we can manage updates for Linux VMs without any 3rd party tool.  

 

This post will detail steps on how to enable patch management for Linux VM and how we can automate the patch deployment task.

 

Let's first start by creating a Linux VM.

 

Note: PowerShell will be used in the configuration process and will require the Azure PowerShell module to be installed. 

 

  1. Launch PowerShell console and connect to Azure using Connect-AzAccount
     
  2. Next create a new resource group using the following command:
     
    New-AzResourceGroup -Name REBELRG -Location "East US"​

     

    lvm1.png
     
    In the above,
     REBELRG is the resource group name and East US is the resource group location.
     

  3. Now we need to create a new Linux VM. Ubuntu will be the OS selected for this newly created VM. Enter the follwoing script to create it:
     
    $mylogin = Get-Credential
    
    New-AzVm -ResourceGroupName REBELRG -Name "REBELVM01" -Location "East US" -VirtualNetworkName "REBELVNET1" -SubnetName "REBELVMSubnet1" -PublicIpAddressName "REBELVM01IP1" -OpenPorts 22 -Image UbuntuLTS -Size Standard_D2s_v3 -Credential $mylogin​

     
    In the above, REBELVM01 is the VM name. It is running UbuntuLTS edition. I have specified it using -Image parameter. It also using Standard_D2s_v3 vm size. This also has SSH connection enabled.
     lvm2.png
     
    With the Linux VM now created, next step is to configure the update management feature.
     

  4. Log in to Azure Portal (https://portal.azure.com) as Global Administrator
     
  5. Search for the REBELVM01 VM and click on it. 
     
  6. Then under the operations section click on Update management
     
    lvm3.png 
  7. Next select Enable for this VM option to enable update management only for REBELVM01.
     
  8. Now specify the log analytic workspace and Azure automation account details. You may need to create a one if you do not have an existing one as part of this exercise. Once selections are made click on Enable
     
    lvm4.png
     
  9. This can take about 15 minutes to complete the process. Once update management is enabled, the system will automatically check for updates and install the required agents (hybrid runbook worker).
     
  10. The the missing updates are then reported once the initial scan is completed.
     
    lvm5.png
     
  11. The next step of the configuration is to schedule update deployment. Click on Schedule update deployment option on the update management window to enable this.
     
    lvm6.png
     
  12. In the new wizard, under update classifications, we can select which type of updates to target for the schedule. In this demo, I am targeting all updates.
     
    lvm7.png
     
  13. Next under Schedule settings, we can define the time, time zone and recurrence. 
     
    lvm8.png
     
  14. Under Pre-scripts + Post-scripts option we can define scripts that execute before patching and after patching. 
     
  15. Under Reboot options, we can specify the way the system should handle the system reboot. 
     
    lvm9.png
     
  16. Once selections are done, click on Create to complete the schedule configuration process. 
     
  17. If we need to patch multiple Linux servers using one update schedule, create an update deployment schedule using Manage multiple machines option.
     
    lvm10.png
     
    This allows selecting machine groups or individual machines as targets. 
     
    lvm11.png
     
  18. Once the system process the update schedule, we can see the results under History tab. 
     
    lvm2.png
     
    lvm13.png
     
    As we can see, all the updates are installed successfully. 

There are also hand-on lab resources within Microsoft Learn that can extend your knowledge surrounding the Azure Update Management solution in updating virtual machines in your cloud environment. 
 
Check out the following Learn Module to learn more: Keep your virtual machines updated

%3CLINGO-SUB%20id%3D%22lingo-sub-1081576%22%20slang%3D%22en-US%22%3EStep-by-Step%3A%20How%20to%20update%20an%20Azure%20Linux%20VM%20using%20Update%20management%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-1081576%22%20slang%3D%22en-US%22%3E%3CP%3EOperating%20system%20updates%20include%20feature%20updates%2C%20bug%20fixes%2C%20and%20security%20improvements%20and%20are%20important%20to%20update%20periodically.%20This%20applies%20to%20desktop%20computers%20as%20well%20as%20servers.%20There%20are%20many%20tools%20available%20to%20manage%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fwindows%2Fdeployment%2Fupdate%2Fwaas-servicing-channels-windows-10-updates%3FWT.mc_id%3Dmodinfra-35465-abartolo%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EWindows%20update%20process%3C%2FA%3E.%20When%20it%20comes%20to%20Linux%20however%2C%20most%20struggle%20as%20few%20tools%20support%20Linux%20system%20updates.%20Luckily%20in%20Azure%2C%20we%20can%20manage%20updates%20for%20Linux%20VMs%20without%20any%203rd%20party%20tool.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20post%20will%20detail%20steps%20on%20how%20to%20enable%20patch%20management%20for%20Linux%20VM%20and%20how%20we%20can%20automate%20the%20patch%20deployment%20task.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3ELet's%20first%20start%20by%20creating%20a%20Linux%20VM.%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CEM%3E%3CSTRONG%3ENote%3A%20PowerShell%20will%20be%20used%20in%20the%20configuration%20process%20and%20will%20require%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fpowershell%2Fazure%2Finstall-az-ps%3Fview%3Dazps-6.2.1%26amp%3BviewFallbackFrom%3Dazps-2.6.0%26amp%3BWT.mc_id%3Dmodinfra-35465-abartolo%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EAzure%20PowerShell%20module%3C%2FA%3E%20to%20be%20installed.%26nbsp%3B%3C%2FSTRONG%3E%3C%2FEM%3E%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3COL%3E%0A%3CLI%3ELaunch%20PowerShell%20console%20and%20connect%20to%20Azure%20using%3CSPAN%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%3EConnect-AzAccount%3CBR%20%2F%3E%26nbsp%3B%3C%2FSTRONG%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3ENext%20create%20a%20new%20resource%20group%20using%20the%20following%20command%3A%3CBR%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3CBR%20%2F%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3ENew-AzResourceGroup%20-Name%20REBELRG%20-Location%20%22East%20US%22%E2%80%8B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lvm1.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163168i738AA1E72EB156E0%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22lvm1.png%22%20alt%3D%22lvm1.png%22%20%2F%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3CBR%20%2F%3EIn%20the%20above%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3EREBELRG%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Eis%20the%20resource%20group%20name%20and%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3EEast%20US%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Eis%20the%20resource%20group%20location.%3CBR%20%2F%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3ENow%20we%20need%20to%20create%20a%20new%20Linux%20VM.%20Ubuntu%20will%20be%20the%20OS%20selected%20for%20this%20newly%20created%20VM.%20Enter%20the%20follwoing%20script%20to%20create%20it%3A%3CBR%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3CBR%20%2F%3E%3CPRE%20class%3D%22lia-code-sample%20language-powershell%22%3E%3CCODE%3E%24mylogin%20%3D%20Get-Credential%0A%0ANew-AzVm%20-ResourceGroupName%20REBELRG%20-Name%20%22REBELVM01%22%20-Location%20%22East%20US%22%20-VirtualNetworkName%20%22REBELVNET1%22%20-SubnetName%20%22REBELVMSubnet1%22%20-PublicIpAddressName%20%22REBELVM01IP1%22%20-OpenPorts%2022%20-Image%20UbuntuLTS%20-Size%20Standard_D2s_v3%20-Credential%20%24mylogin%E2%80%8B%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%26nbsp%3B%3CBR%20%2F%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EIn%20the%20above%2C%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3EREBELVM01%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Eis%20the%20VM%20name.%20It%20is%20running%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3EUbuntuLTS%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Eedition.%20I%20have%20specified%20it%20using%20-Image%20parameter.%20It%20also%20using%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3EStandard_D2s_v3%20vm%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Esize.%20This%20also%20has%20SSH%20connection%20enabled.%3CBR%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lvm2.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163169iD8FFF247E2971CD3%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22lvm2.png%22%20alt%3D%22lvm2.png%22%20%2F%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3CBR%20%2F%3EWith%20the%20Linux%20VM%20now%20created%2C%20next%20step%20is%20to%20configure%20the%20update%20management%20feature.%3CBR%20%2F%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FP%3E%0A%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3ELog%20in%20to%20Azure%20Portal%20(%3C%2FSPAN%3E%3CA%20style%3D%22font-family%3A%20inherit%3B%20background-color%3A%20%23ffffff%3B%22%20href%3D%22https%3A%2F%2Fportal.azure.com%2F%22%20target%3D%22_blank%22%20rel%3D%22noopener%20nofollow%20noreferrer%22%3Ehttps%3A%2F%2Fportal.azure.com%3C%2FA%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E)%20as%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3EGlobal%20Administrator%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E.%26nbsp%3B%3CBR%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3ESearch%20for%20the%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3EREBELVM01%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EVM%20and%20click%20on%20it.%26nbsp%3B%3CBR%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3EThen%20under%20the%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3Eoperations%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Esection%20click%20on%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3EUpdate%20management%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E.%26nbsp%3B%3CBR%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lvm3.png%22%20style%3D%22width%3A%20682px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163170i7F47ED10E2E5B112%2Fimage-dimensions%2F682x562%3Fv%3Dv2%22%20width%3D%22682%22%20height%3D%22562%22%20role%3D%22button%22%20title%3D%22lvm3.png%22%20alt%3D%22lvm3.png%22%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3ENext%20select%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3EEnable%20for%20this%20VM%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3Boption%20to%20enable%20update%20management%20only%20for%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3EREBELVM01%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E.%20%3CBR%20%2F%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3ENow%20specify%20the%20log%20analytic%20workspace%20and%20Azure%20automation%20account%20details.%20You%20may%20need%20to%20create%20a%20one%20if%20you%20do%20not%20have%20an%20existing%20one%20as%20part%20of%20this%20exercise.%20Once%20selections%20are%20made%20click%20on%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3EEnable%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E.%26nbsp%3B%3CBR%20%2F%3E%26nbsp%3B%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lvm4.png%22%20style%3D%22width%3A%20723px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163171i43421DF76D3BA249%2Fimage-dimensions%2F723x562%3Fv%3Dv2%22%20width%3D%22723%22%20height%3D%22562%22%20role%3D%22button%22%20title%3D%22lvm4.png%22%20alt%3D%22lvm4.png%22%20%2F%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%26nbsp%3B%3C%2FSPAN%3E%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EThis%20can%20take%20about%2015%20minutes%20to%20complete%20the%20process.%20Once%20update%20management%20is%20enabled%2C%20the%20system%20will%20automatically%20check%20for%20updates%20and%20install%20the%20required%20agents%20(hybrid%20runbook%20worker).%3CBR%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EThe%20the%20missing%20updates%20are%20then%20reported%20once%20the%20initial%20scan%20is%20completed.%3CBR%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lvm5.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163172iB11BCA8417DB801B%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22lvm5.png%22%20alt%3D%22lvm5.png%22%20%2F%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EThe%20next%20step%20of%20the%20configuration%20is%20to%20schedule%20update%20deployment.%20Click%20on%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3ESchedule%20update%20deployment%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3Boption%20on%20the%20update%20management%20window%20to%20enable%20this.%3CBR%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lvm6.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163173i9746F78B69953DE6%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22lvm6.png%22%20alt%3D%22lvm6.png%22%20%2F%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3EIn%20the%20new%20wizard%2C%20under%26nbsp%3B%3CSTRONG%3Eupdate%20classifications%3C%2FSTRONG%3E%2C%20we%20can%20select%20which%20type%20of%20updates%20to%20target%20for%20the%20schedule.%20In%20this%20demo%2C%20I%20am%20targeting%20all%20updates.%3CBR%20%2F%3E%26nbsp%3B%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lvm7.png%22%20style%3D%22width%3A%20604px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163174i02EBEF97967FB906%2Fimage-dimensions%2F604x562%3Fv%3Dv2%22%20width%3D%22604%22%20height%3D%22562%22%20role%3D%22button%22%20title%3D%22lvm7.png%22%20alt%3D%22lvm7.png%22%20%2F%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3ENext%20under%26nbsp%3B%3CSTRONG%3ESchedule%20settings%3C%2FSTRONG%3E%2C%20we%20can%20define%20the%20time%2C%20time%20zone%20and%20recurrence.%26nbsp%3B%3CBR%20%2F%3E%26nbsp%3B%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lvm8.png%22%20style%3D%22width%3A%20499px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163175iC11C6894B6A3BFD1%2Fimage-dimensions%2F499x562%3Fv%3Dv2%22%20width%3D%22499%22%20height%3D%22562%22%20role%3D%22button%22%20title%3D%22lvm8.png%22%20alt%3D%22lvm8.png%22%20%2F%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EUnder%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3EPre-scripts%20%2B%20Post-scripts%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Eoption%20we%20can%20define%20scripts%20that%20execute%20before%20patching%20and%20after%20patching.%26nbsp%3B%3CBR%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EUnder%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3EReboot%20options%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%2C%20we%20can%20specify%20the%20way%20the%20system%20should%20handle%20the%20system%20reboot.%26nbsp%3B%3CBR%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lvm9.png%22%20style%3D%22width%3A%20266px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163176i93C58400F4DE4E68%2Fimage-dimensions%2F266x562%3Fv%3Dv2%22%20width%3D%22266%22%20height%3D%22562%22%20role%3D%22button%22%20title%3D%22lvm9.png%22%20alt%3D%22lvm9.png%22%20%2F%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EOnce%20selections%20are%20done%2C%20click%20on%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3ECreate%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Eto%20complete%20the%20schedule%20configuration%20process.%26nbsp%3B%3CBR%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3EIf%20we%20need%20to%20patch%20multiple%20Linux%20servers%20using%20one%20update%20schedule%2C%20create%20an%20update%20deployment%20schedule%20using%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSTRONG%20style%3D%22font-family%3A%20inherit%3B%22%3EManage%20multiple%20machines%3C%2FSTRONG%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3E%26nbsp%3B%3C%2FSPAN%3E%3CSPAN%20style%3D%22font-family%3A%20inherit%3B%22%3Eoption.%3CBR%20%2F%3E%3C%2FSPAN%3E%26nbsp%3B%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lvm10.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163177iD3411190B30E7B2A%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22lvm10.png%22%20alt%3D%22lvm10.png%22%20%2F%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%26nbsp%3B%3CBR%20%2F%3EThis%20allows%20selecting%20machine%20groups%20or%20individual%20machines%20as%20targets.%26nbsp%3B%3CBR%20%2F%3E%26nbsp%3B%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lvm11.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163178iBF91D4F8218CD040%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22lvm11.png%22%20alt%3D%22lvm11.png%22%20%2F%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%26nbsp%3B%3C%2FLI%3E%0A%3CLI%3EOnce%20the%20system%20process%20the%20update%20schedule%2C%20we%20can%20see%20the%20results%20under%20History%20tab.%26nbsp%3B%3CBR%20%2F%3E%26nbsp%3B%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lvm2.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163179i4A881FCCBD9CF97F%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22lvm2.png%22%20alt%3D%22lvm2.png%22%20%2F%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%26nbsp%3B%3CBR%20%2F%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22lvm13.png%22%20style%3D%22width%3A%20999px%3B%22%3E%3CIMG%20src%3D%22https%3A%2F%2Ftechcommunity.microsoft.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F163180i48136EF317490123%2Fimage-size%2Flarge%3Fv%3Dv2%26amp%3Bpx%3D999%22%20role%3D%22button%22%20title%3D%22lvm13.png%22%20alt%3D%22lvm13.png%22%20%2F%3E%3C%2FSPAN%3E%3CBR%20%2F%3E%26nbsp%3B%3CBR%20%2F%3EAs%20we%20can%20see%2C%20all%20the%20updates%20are%20installed%20successfully.%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FLI%3E%0A%3C%2FOL%3E%0A%3CP%3EThere%20are%20also%20hand-on%20lab%20resources%20within%20Microsoft%20Learn%20that%20can%20extend%20your%20knowledge%20surrounding%20the%20Azure%20Update%20Management%20solution%20in%20updating%20virtual%20machines%20in%20your%20cloud%20environment.%26nbsp%3B%20%3CBR%20%2F%3E%26nbsp%3B%3CBR%20%2F%3ECheck%20out%20the%20following%20Learn%20Module%20to%20learn%20more%3A%26nbsp%3B%3CSTRONG%3E%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Flearn%2Fmodules%2Fkeep-your-virtual-machines-updated%2F%3FWT.mc_id%3Dmodinfra-35465-abartolo%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EKeep%20your%20virtual%20machines%20updated%3C%2FA%3E%3C%2FSTRONG%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-TEASER%20id%3D%22lingo-teaser-1081576%22%20slang%3D%22en-US%22%3E%3CP%3EOperating%20system%20updates%20include%20feature%20updates%2C%20bug%20fixes%2C%20and%20security%20improvements%20and%20are%20important%20to%20update%20periodically.%20This%20applies%20to%20desktop%20computers%20as%20well%20as%20servers.%20There%20are%20many%20tools%20available%20to%20manage%20the%20%3CA%20href%3D%22https%3A%2F%2Fdocs.microsoft.com%2Fwindows%2Fdeployment%2Fupdate%2Fwaas-servicing-channels-windows-10-updates%3FWT.mc_id%3Dmodinfra-35465-abartolo%22%20target%3D%22_blank%22%20rel%3D%22noopener%20noreferrer%22%3EWindows%20update%20process%3C%2FA%3E.%20When%20it%20comes%20to%20Linux%20however%2C%20most%20struggle%20as%20few%20tools%20support%20Linux%20system%20updates.%20Luckily%20in%20Azure%2C%20we%20can%20manage%20updates%20for%20Linux%20VMs%20without%20any%203rd%20party%20tool.%26nbsp%3B%26nbsp%3B%3C%2FP%3E%0A%3CP%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EThis%20post%20will%20detail%20steps%20on%20how%20to%20enable%20patch%20management%20for%20Linux%20VM%20and%20how%20we%20can%20automate%20the%20patch%20deployment%20task.%3C%2FP%3E%3C%2FLINGO-TEASER%3E%3CLINGO-LABS%20id%3D%22lingo-labs-1081576%22%20slang%3D%22en-US%22%3E%3CLINGO-LABEL%3EAzure%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EDishan%20Francis%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3EPowerShell%3C%2FLINGO-LABEL%3E%3CLINGO-LABEL%3ESecurity%3C%2FLINGO-LABEL%3E%3C%2FLINGO-LABS%3E
Co-Authors
Version history
Last update:
‎Jul 16 2021 09:18 AM
Updated by:
www.000webhost.com