You must first complete the following exercise to prepare your Azure environment before you begin the lab exercises.
Exercise: Prepare your Azure Environment
Tasks:
[!NOTE] To complete this lab you need an Azure subscription.
This exercise should take approximately 30 minutes to complete.
This set of lab exercises assumes that you have global administrator permissions to an Azure subscription.
Note: This set of exercises assumes that you choose to deploy in the East US Region, but you can change this to another region if you choose. Just remember that each time you see East US mentioned in these instructions you will need to substitute the region you have chosen.
In this exercise, you create an Entra ID security group.
On the New Group page, provide the values in the following table and choose Create.
| Property | Value |
|---|---|
| Group type | Security |
| Group name | App Log Examiners |
| Group description | App Log Examiners |
In this exercise, you deploy and configure a Windows Server virtual machine.
On the Basics page of the Create A Virtual Machine wizard, select the following settings and then choose Review + Create.
| Property | Value |
|---|---|
| Subscription | Your subscription |
| Resource Group | rg-alpha |
| Virtual machine name | WS-VM1 |
| Region | East US |
| Availability options | No infrastructure redundancy required |
| Security type | Standard |
| Image | Windows Server 2022 Datacenter: Azure Edition – x64 Gen2 |
| VM architecture | x64 |
| Size | Standard_D4s_v3 – 4 vcpus, 16 GiB memory |
| Administrator account | prime |
| Password | [Select a unique secure password] P@ssw0rdP@ssw0rd |
| Inbound ports | RDP 3389 |
On the RDP rule space, change the Source to My IP address and choose Save.
This restricts incoming RDP connections to the IP address you’re currently using.
On the Add inbound security rule page, configure the following settings and choose Add.
| Property | Value |
|---|---|
| Source | Any |
| Source port ranges | * |
| Destination | Any |
| Service | HTTP |
| Action | Allow |
| Priority | 310 |
| Name | AllowAnyHTTPInbound |
At the elevated command prompt, type the following command and press Enter.
Install-WindowsFeature Web-Server -IncludeAllSubFeature -IncludeManagementTools
When the installation completes run the following command to change to the web server root directory.
cd c:\inetpub\wwwroot\
Run the following command.
Wget https://raw.githubusercontent.com/Azure-Samples/html-docs-hello-world/master/index.html -OutFile index.html
In this exercise you deploy and configure a Linux virtual machine.
On the Basics page of the Create A Virtual Machine wizard, select the following settings and then choose Review + Create.
| Property | Value |
|---|---|
| Subscription | Your subscription |
| Resource Group | rg-alpha |
| Virtual machine name | Linux-VM2 |
| Region | East US |
| Availability options | No infrastructure redundancy required |
| Security type | Standard |
| Image | Ubuntu Server 20.04 LTS – x64 Gen2 |
| VM architecture | x64 |
| Size | Standard_D2s_v3 – 2 vcpus, 8 GiB memory |
| Authentication type | Password |
| Username | Prime |
| Password | [Select a unique secure password] P@ssw0rdP@ssw0rd |
| Public inbound ports | None |
Note: The installation and configuration of the OmsAgentForLinux extension will be performed in Exercise 2 after the Log Analytics workspace is created.
On the Basics page, provide the following information and choose Next.
| Property | Value |
|---|---|
| Subscription | Your subscription |
| Resource Group | rg-alpha |
| Region | East US |
| Sku Name | F1 |
| Sku Capacity | 1 |
| Sql Administrator Login | prime |
| Sql Administrator Login Password | [Select a unique secure password] P@ssw0rdP@ssw0rd |
On the Basics page, provide the following information and choose Next.
| Property | Value |
|---|---|
| Subscription | Your subscription |
| Resource Group | rg-alpha |
| Region | East US |
| Web app Name | AzureLinuxAppWXYZ (assign a random number to the final four characters of the name) |
| Sku | S1 |
| Linux Fx version | php|7.4 |
Next step: Deploy Log Analytics
Click here to navigate to this page on the GitHub repo if not using pages