Exercise - Use Update Management on a virtual machine

Completed

Your Public Information Officer (PIO) wants to set up a virtual machine to serve as a web resource for local media outlets. It's imperative that this virtual machine (VM) is as protected as it can be to prevent unauthorized access. As part of your security profile, you want to implement Update Management on this VM so that you can ensure that it's always up to date with the latest security patches.

You need an Azure subscription to complete the exercises. If you don't have an Azure subscription, create a free account and add a subscription before you begin. If you're a student, you can take advantage of the Azure for students offer.

Create a virtual machine

Here, you create a new virtual machine to serve as a web server for the local media.

  1. Sign in to the Azure portal.

  2. On the Azure portal menu or from the Home page, select Create a resource.

  3. In the Search services and marketplace box, search for and select Virtual machine, then select Create

  4. The Create a virtual machine pane appears.

  5. On the Basics tab, enter the following values for each setting.

    Setting Value
    Project details
    Subscription Select your Azure subscription
    Resource group Select Create new, then create a new resource group named mslearn-vmupdate
    Instance details
    Virtual machine name MediaWebServer
    Region Select the region nearest you
    Availability options Select No infrastructure redundancy required
    Security type Select Trusted launch virtual machines
    Image Select Windows Server 2019 Datacenter - x64 Gen2
    VM architecture Leave as default (x64)
    Run with Azure Spot discount Leave unchecked
    Size Select B2s from the list. If you don't have the option, select the See all sizes link.
    Administrator account
    Username Create a username of your choice and note it for later
    Password Create a password of your choice and note it for later
    Inbound port rules
    Public inbound ports Select Allow selected ports
    Select inbound ports From the dropdown list, select HTTP, HTTPS, and RDP

    Screenshot of the inbound port rules section that shows HTTP, HTTPS, and RDP selected.

  6. Select Review + create, then select Create.

  7. Wait for the VM to be created. You can select the Notifications icon in the upper right corner of the portal to monitor the progress.

Onboard Update Manager to the VM

Here, you enable Update Manager on the virtual machine you created.

  1. In the left pane, select Virtual machines.

  2. Select MediaWebServer.

  3. Scroll down the list to Operations, and select Updates.

  4. In the Updates using automation section, select Go to Updates using automation.

    Screenshot of update management page with log analytics location and workspace, automation account subscription, and automation account fields.

  5. Accept the defaults and select Enable.

  6. Wait for deployment to finish.

  7. When update management deployment is complete, the Update Management page shows the status of the VM updates. You might need to refresh the page and select Go to Update management to get to this view.

    Screenshot of the Update management page that shows the status of updates for the VM.

  8. Wait for at least 15 minutes while Update Management configures the virtual machine.

  9. When Update Management configuration is complete, notice that Compliance is complete and the Failed update deployments counter is configured.

    Screenshot that shows a green check under Compliance and Update agent readiness fields.

    Also, in this example, Update Management identified that there are updates for Windows Server available. In the Information link column, there's a link to the knowledge base article for update.

Examine Hybrid Worker Groups

  1. On the Azure portal menu or from the Home page, select All resources.

  2. Examine the Type column to find the resource type Automation Account, and select the Automation account.

  3. In the Automation account pane, under the Process Automation section, select Hybrid worker groups.

  4. Select the tab System hybrid worker groups.

  5. Notice that the virtual machine you created is listed as a system hybrid worker group.

    Screenshot that shows the VM as a system hybrid worker group for the Automation account.