Monitor your app using Azure Developer CLI

In this article, you learn how to use Azure Developer CLI (azd) to monitor your app health.

While we use the React Web App with Node.js API and MongoDB on Azure template for this guide, you can use any of the Azure Developer CLI templates.

Note

The azd monitor command is still in beta. Read more about alpha and beta feature support on the feature versioning and release strategy page.

Prerequisites

Configure your environment

Create monitoring activity in the app before running the azd monitor commands:

  1. Open the ToDo app in your preferred code editor.

  2. Create a new list and add a couple of items.

Monitor the app

To help with monitoring apps, azd provides a monitor command to launch various Application Insights dashboards. Run the command with one of the following parameters in the project directory to monitor app health:

Application Insights dashboard Command
Main dashboard azd monitor --overview
Live metrics dashboard azd monitor --live
Logs dashboard azd monitor --logs

Clean up resources

When you no longer need the resources created in this article, run the azd down command to delete the resource group:

azd down

See also

Request help

For information on how to file a bug, request help, or propose a new feature for the Azure Developer CLI, please visit the troubleshooting and support page.

Next steps