Exercise - Use Update Management on a virtual machine
Your PIO wants to set up a virtual machine to serve as a web resource for local media outlets. It is imperative that this virtual machine 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 is always up-to-date with the latest security patches.
Create a virtual machine
Here you will create a new virtual machine to serve as a web server for the local media.
Sign in to the Azure portal.
On the Azure portal menu or from the Home page, select Create a resource.
In the New pane, select Windows Server 2016 Datacenter.
Enter the following values in the Create a virtual machine window:
Field Value Subscription Select your Azure subscription Resource group Create a new resource group named "mslearn-vmupdate" Virtual machine name MediaWebServer Region Select the region nearest you Availability options No infrastructure redundancy required Image Windows Server 2016 Datacenter Size Select Change size and select B2s from the list Username Create a username of your choice and note it for later Password Create a password of your choice and note it for later
In the INBOUND PORT ROLES section, choose Allow selected ports in the Public inbound ports field. Select HTTP, HTTPS, and RDP as shown below.
- Select Review + create and then select Create. Wait for the VM to be created. You can select the Bell icon in the upper right corner of the portal to monitor the progress.
Onboard Update Manager to the VM
Here you'll enable Update Manager on the virtual machine you created.
- In the left pane, select Virtual machines.
- In the Virtual machines pane, select the virtual machine from the list. In this example, select MediaWebServer.
- In the MediaWebServer pane, scroll down the list to Operations, and then select Update management.
- In the Update Management pane, ensure that the Enable for this VM radio button is selected. Note that a default Log Analytics workspace and Automation account will be created. Accept the remaining defaults, and then select Enable.
- In the upper left corner, select the Notification bell and wait for deployment to finish.
- When Update Management deployment has completed, the Update Management menu will appear as shown below.
- Wait for at least 15 minutes while Update Management configures the virtual machine.
- When Update Management configuration is complete, the Update Management pane will appear as shown below.
- Compliance is now complete, that the Failed update deployments counter is now configured, and that in this example, Update Management has identified that there is a Cumulative Update for Windows Server available. To the right of the notification of the Cumulative Update, under INFORMATION LINK that there is a link to the knowledge base article for this Cumulative Update.
Examine Hybrid Worker Groups
- On the Azure portal menu or from the Home page, select All resources.
- In the All resources pane, examine the TYPE column to find the resource of type Automation Account, and then select the Automation account.
- In the Automation account pane, scroll down to the Process Automation section and in there, select Hybrid worker groups.
- In the Hybrid worker groups pane, select the System hybrid worker groups tab.
- The virtual machine you created is listed as shown below.