Skilling tasks
- Create a data collection endpoint
- Create a data collection rule
- Add an IIS log collection to an existing data collection rule
- Configure Network Connection Monitor for a Linux IaaS virtual machine
Exercise instructions
Create a data collection endpoint
- In the Azure Portal Search Bar, enter Monitor and select Monitor from the list of results.
- In the Monitor page, under Settings, choose Data Collection Endpoints.
- On the Data Collection Endpoints page, choose Create.
-
On the Create Data Collection Endpoint page, provide the following settings and then choose Review + Create.
Property Value Endpoint name IaaSVMCollectionEndpoint Subscription Your subscription Resource Group rg-alpha Region East US - Review the settings and choose Create.
Create a data collection rule
- In the Azure Portal Search Bar, enter Monitor and select Monitor from the list of results.
- In the Monitor page, under Settings, choose Data Collection Rules.
- On the Data Collection Rules page, choose Create.
-
On the Create Data Collection Rule page, configure the following settings and choose Next.
Property Value Rule name WinVMDCR Subscription Your subscription Resource Group rg-alpha Region East US Platform type Windows Data collection endpoint IaaSVMCollectionEndpoint - On the Resources page, choose Add Resources.
- On the Select a scope page, enable the WS-VM1 checkbox and choose Apply.
- On the Create Data Collection Rule page, choose Next.
- On the Collect and Deliver page, choose Add data source.
- On the Add data source page, select Windows Event Logs. In the Application category enable the Critical and Error categories. In the Security category, choose the Audit Failure category. In the System category, enable the Critical and Error categories.
- Choose Next.
-
On the Destination page, configure the following settings:
Property Value Destination type Azure Monitor Logs Subscription Your subscription Account or namespace LogAnalytics1 - Choose Add data source.
- Choose Review + Create and then choose Create.
Add an IIS log collection to an existing data collection rule
- In the Azure Portal Search Bar, enter Monitor and select Monitor from the list of results.
- In the Monitor page, under Settings, choose Data Collection Rules.
- Choose the WinVMDRC rule in rg-alpha.
- Under Configuration, choose Data Sources.
- On the Data Sources page, choose Add.
- On the Add Data Source page, select IIS Logs.
- Choose Next.
-
On the Destination page, configure the following settings:
Property Value Destination type Azure Monitor Logs Subscription Your subscription Account or namespace LogAnalytics1 - Choose Add data source.
Configure Network Connection Monitor for a Linux IaaS virtual machine
- In the Azure Portal Search Bar, enter Network Watcher and select Network Watcher from the list of results.
- Under Monitoring, choose Connection Monitor.
- On the Connection Monitor page, choose Create.
-
On the Basics page of the Create Connection Monitor wizard, provide the following information and choose Next.
Property Value Connection Monitor name LinuxVMPubIP Subscription Your subscription Region East US Workspace LogAnalytics1 - On the Add test group details page, enter the name LinuxIPTest and choose Add sources.
- On the Add Sources page, select Azure Endpoints and set the type to Virtual machines. Select Subnet and then enable the Linux-VM checkbox. Choose Add Endpoints.
- Choose Add Test Configuration.
- On the Add Test Configuration page, enter the name DefaultHTTP and then choose Add Test Configuration.
- Choose Add Destinations. Select Azure Endpoints and set the type to Virtual machines. Select Subnet and then enable the WS-VM1 checkbox. Select Add Endpoints.
- Choose Add Test Group.
- Choose Review and Create and then choose Create.