Task: Configure Diagnostics on Azure Resources
Video: Configuring Diagnostics on Resources
Estimated time: 30 minutes
Goal
In this task you will provision two virtual machines, a web app and a storage account. You will configure logging for all of the resources.
Pre-requisites
- Azure subscription
Requirements
- Provision resources
- Configure logging
Requirement 1: Provision resources
You will begin this task by provisioning the required resources. Use the following settings for each resource (use defaults for settings unless otherwise specified):
| Setting |
Value |
| Resource group |
task-diagnostics |
| Name |
windows-VM |
| Image |
Windows Server 2016 Datacenter |
| Size |
Standard D2 v3 |
| User name |
student |
| Password |
<strong password> |
| Setting |
Value |
| Resource group |
task-diagnostics |
| Name |
linux-VM |
| Image |
Ubuntu server 18.04-LTS |
| Size |
Standard D2 v3 |
| Authentication type |
Password |
| User name |
student |
| Password |
<strong password> |
| Setting |
Value |
| Resource group |
task-diagnostics |
| Name |
<unique name> |
| Runtime stack |
.NET Core 2.2 |
| Operating System |
Windows |
| Sku and size |
Standard S1 |
| Enable Application Insights |
No |
| Setting |
Value |
| Resource group |
task-diagnostics |
| Name |
<unique name> |
| Replication |
LRS |
Requirement 2: Configure logging
Now you will configure logging for the resources created in requirement 1. Use the following settings:
| Setting |
Value |
| Performance counters |
<Basic - select all> |
| Application logs |
Enabled |
| Setting |
Value |
| Metrics sample rate |
30 seconds |
| Syslog - LOG_AUTH |
LOG_INFO |
| Setting |
Value |
| Application logging |
|
| File System |
On -> Warning |
| Blob |
Off |
| Web server logging |
Storage |
| Storage account |
<your account> |
| Container |
web-diag |
| Retention |
10 days |
| Setting |
Value |
| Blob logging |
Read, Write, Delete |
| Table logging |
Read, Write, Delete |
| Queue logging |
Read, Write, Delete |
Clean up
- Delete the task-diagnostics resource group.
Solution
Having trouble completing this task? View the demonstration video to see how to do it.
Here is another line.