Azure / Azure/azure-cli

what is appID is not clear

Open
#21,015 2 comments 1 reaction 1 assignee Claimed by @kairu-ms View on GitHub
act-observability-squad customer-reported Documentation feature-request Monitor Traiged
Dominant language
Python
Stars
4.6k
Forks
3.5k
Avg merge
3d 2h
Merged PRs (30d)
60

Description

in the command and explanation:
az monitor app-insights query --app e292531c-eb03-4079-9bb0-fe6b56b99f8b --analytics-query 'requests | summarize count() by bin(timestamp, 1h)' --offset 1h30m

--apps -a
GUID, app name, or fully-qualified Azure resource name of Application Insights component. The application GUID may be acquired from the API Access menu item on any Application Insights resource in the Azure portal. If using an application name, please specify resource group.

it is not 100% clear what is the variable we need to insert in --app
please make it clear that there are options:
1. api - which i dont understand
2. application insight name + resource group:
az monitor app-insights query --resource-group $RSG --app $appInsightName --analytics-query 'requests | summarize count() by bin(timestamp, 1h)' --offset 1h30m

---
#### Document Details

⚠ *Do not edit this section. It is required for docs.microsoft.com ➟ GitHub issue linking.*

* ID: d12f6146-c67e-a67b-2878-5e8b882be173
* Version Independent ID: 588219b1-1476-3a0a-4c78-bd4afb8aa08d
* Content: [az monitor app-insights](https://docs.microsoft.com/en-us/cli/azure/monitor/app-insights?view=azure-cli-latest)
* Content Source: [latest/docs-ref-autogen/monitor/app-insights.yml](https://github.com/MicrosoftDocs/azure-docs-cli/blob/main/latest/docs-ref-autogen/monitor/app-insights.yml)
* Service: **monitoring-and-diagnostics**
* GitHub Login: @rloutlaw
* Microsoft Alias: **routlaw**

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.