Challenge 01 - Alerts, Activity Logs, and Service Health

< Previous Challenge - Home - Next Challenge >


Logs show everything that is happening to your resources at the API level. Platform logs from Azure in Datadog provide insights into subscription-level events. This includes information such as when a resource is modified or when a virtual machine is started.

In the eShopOnWeb Azure environment, there are three compute resources to be aware of:

Note The “XX” in each resource name will vary based on the Azure region the eShopOnWeb Azure environment has been deployed to.

Azure Bastion has been configured to enable you to securely login to any of these VMs with a Remote Desktop session through a web brower.

To login to a VM via Azure Bastion, navigate to the blade for any of these VMs in the Azure portal, click the “Connect” button, and select “Bastion”. Use the username and password provided in Challenge 0.


For this challenge, your goal is to understand Azure platform logs, configure a monitor to get notified if a VM has been turned off, and view the service health.

You will do this by configuring monitors with Datadog on the SQL Server VM (vmwthdbdXX).

Install & Configure Datadog Agent

Configure Monitors with Datadog

There are multiple ways to configure monitoring in Datadog. You can configure monitoring manually in the Datadog portal or via the Datadog API. This is a great way to learn how Datadog works and what settings are available to choose from.

However, this method does not scale when you need to configure monitoring across 10s, 100s, or even 1000s of resources in Azure. It is easier to configure monitoring at scale across many Azure resources if you use a declarative infrastructure-as-code tool such as Terraform.

Note Terraform is an open-source infrastructure as code software tool that provides a consistent CLI workflow to manage hundreds of cloud services. Terraform codifies cloud APIs into declarative configuration files. It’s often best practice to use infrastructure as code (IAC) to deploy resources into Azure for repeatability, fewer mistakes from manual processes, and leverage the organization’s CI/CD pipeline.

For this challenge, you will use Terraform to deploy the Datadog monitor. We have provided you with a sample Terraform file that can be used to configure monitoring in Datadog.

You can find the sample Terraform file,, in the /Challenge-01 folder of the file provided by your coach. To complete the challenge, navigate to the location of this file using your terminal client (WSL or Azure Cloud Shell).

Bonus question/task:

Success Criteria

To complete this challenge successfully, you should be able to:

Learning Resources