Exercise - Use azure log analytics and schedule updates
Recently your department moved all of their infrastructure to Azure. There are many VMs serving up web sites and email functions. You have been tasked to keep these VMs up-to-date with the latest patches and security releases. You decide to roll out the Update Management solution to all of the VMs in your enterprise.
In the following exercise you will review the agent connectivity to log analytics and, learn how to schedule update deployments.
Review Agent Connectivity to Log Analytics
Perform the following steps in the Azure portal to assess if connectivity between the agent and log analytics has taken place. Start by signing into the Azure portal using the same account with which you activated the sandbox.
- On the Azure portal menu or from the Home page, select Virtual machines option in the left pane and select on the newly created virtual machine.
- Select the Overview menu option.
- In the virtual machine page, make note of the Public IP Address as shown below.
- On your local computer, select the Windows icon and type Remote Desktop Connection then select the Remote Desktop Connection app.
- In the Remote Desktop Connection app, type the public IP address into the Computer field, and then select Connect.
- In the Enter your credentials dialog box, type the password that you specified when you created the virtual machine, and then select OK.
- In the certificate warning dialog, select Yes.
- On the remote machine, select the Windows icon, and then select the Control Panel tile.
- In Control Panel, open Microsoft Monitoring Agent and then select on the Azure Log Analytics (OMS) tab.
- Observe that the agent displays the following message: The Microsoft Monitoring Agent has successfully connected to Microsoft Operations Management Suite service. as shown below.
- Select OK to close the Microsoft Monitoring Agent Properties window.
- In the All Control Panel Items window, select Administrative Tools.
- In the Administrative Tools window, double-click Event Viewer.
- Expand Applications and Services Logs, and then select Operations Manager, and then maximize the Event Viewer window.
- In the Operations Manager view, select the Event ID column heading to sort the list by Event ID.
- Observe Event IDs 3000 and 5002. These events indicate that the computer has registered with the Log Analytics workspace and is receiving configuration. Event ID 5002 is shown below.
- Close the Event Viewer and all other windows that were opened.
- Close the Remote Desktop Connection application.
Schedule Update Deployments
Here you will learn how to schedule updates for the virtual machine.
- In the MediaWebServer - Update management pane, select Schedule update deployment tab.
- In the Name field, type Critical and Security Updates
- In the Update classifications drop down list, check only Critical updates and Security updates.
- In the Schedule settings field, under Starts increment the time up one hour.
- In the Recurrence field, select Recurring.
- In the Recur every field, configure update to occur once every week on Sunday as shown below, and then select OK.
- In the New update deployment pane, select Create.