Prepare your bring-your-own-subscription (BYOS)
This set of lab exercises assumes that you have global administrator permissions to an Azure subscription.
- In the Azure Portal Search Bar, enter Resource Groups and select Resource groups from the list of results.
- On the Resource Groups page, select Create.
- On the Create a Resource Group page, select your subscription and enter the name rg-alpha. Set the region to East US, choose Review + Create, and then choose Create.
[!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.
Create App Log Examiners security group
In this exercise, you create an Entra ID security group.
- In the Azure Portal Search Bar, enter Azure Active Directory (or Entra ID) from the list of results.
- On the Default Directory page, select Groups.
- On the Groups page, choose New 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
Deploy and configure WS-VM1
In this exercise, you deploy and configure a Windows Server virtual machine.
- In the Azure Portal Search Bar, enter Virtual Machines and select Virtual Machines from the list of results.
- On the Virtual Machines page, choose Create and select Azure 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 - Review the settings and select Create.
- Wait for the deployment to complete. Once deployment completes choose Go to resource.
- On the WS-VM1 properties page, choose Networking.
- On the Networking page, select the RDP rule.
-
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 Networking page, choose Add inbound port rule.
-
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 - On the WS-VM1 page, choose Connect.
- Under Native RDP, choose Select.
- On the Native RDP page, choose Download RDP file and then open the file. Opening the RDP file opens the Remote Desktop Connection dialog box.
- On the Windows Security dialog box, choose More Choices and then choose Use a different account.
- Enter the username as .\prime and the password as the secure password you chose in Step 3, and choose OK.
- When signed into the Windows Server virtual machine, right-click on the Start hint and then choose Windows PowerShell (Admin).
- 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
Deploy and configure LX-VM2
In this exercise you deploy and configure a Linux virtual machine.
- In the Azure Portal Search Bar, enter Virtual Machines and select Virtual Machines from the list of results.
- On the Virtual Machines page, choose Create and select Azure 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 Virutal 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 - Review the information and choose Create.
- After the VM deploys, open the VM properties page and choose Extensions + Applications under Settings.
- Choose Add and select the Network Watcher Agent for Linux. Choose Next and then choose Review and Create. Choose Create.
- Configure the AzureNetworkWatcherExtension and the OmsAgentForLinux extension so that they automatically upgrade.
Deploy a web app with an SQL Database
- Ensure that you’re signed into the Azure Portal.
- In your browser, open a new browser tab and navigate to https://github.com/Azure/azure-quickstart-templates/tree/master/quickstarts/microsoft.web/web-app-sql-database
- On the GitHub page, choose Deploy to Azure.
- A new tab opens. If necessary, re-sign into Azure with the account that has Global Administrator privileges.
- On the Basics page, select Edit template.
- In the template editor, delete the contents of lines 158 to 174 inclusive and delete the “,” on line 157. Choose Save.
-
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 - Review the information presented and select Create.
- After the deployment completes, choose Go to resource group.
Deploy a Linux web app
- Ensure that you’re signed into the Azure Portal.
- In your browser, open a new browser tab and navigate to https://learn.microsoft.com/en-us/samples/azure/azure-quickstart-templates/webapp-basic-linux/
- On the GitHub page, choose Deploy to Azure.
-
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 - Review the information and choose Create.