Skip to content

Latest commit

 

History

History
61 lines (40 loc) · 2.17 KB

monitor-your-app.md

File metadata and controls

61 lines (40 loc) · 2.17 KB
title description author ms.author ms.date ms.service ms.topic ms.custom
Monitor your app using Azure Developer CLI
Learn how to use Azure Developer CLI (azd) to monitor your app health.
alexwolfmsft
alexwolf
12/11/2022
azure-dev-cli
how-to
devx-track-azdevcli, build-2023

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 whose parameters launch various Application Insights dashboards. Run any of the following commands 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, do the following steps:

azd down

See also

[!INCLUDE request-help]

Next steps

[!div class="nextstepaction"] Make your project Azure Developer CLI (azd) compatible