az monitor app-insights

Commands for querying data in Application Insights applications.

Commands

az monitor app-insights api-key

Operations on API keys associated with an Application Insights component.

az monitor app-insights api-key create

Create a new API key for use with an Application Insights resource.

az monitor app-insights api-key delete

Delete an API key from an Application Insights resource.

az monitor app-insights api-key show

Get all keys or a specific API key associated with an Application Insights resource.

az monitor app-insights component

Manage an Application Insights component or its subcomponents.

az monitor app-insights component billing

Manage an Application Insights component billing features.

az monitor app-insights component billing show

Show the billing features of an Application Insights resource.

az monitor app-insights component billing update

Update the billing features of an Application Insights resource.

az monitor app-insights component create

Create a new Application Insights resource.

az monitor app-insights component delete

Delete a new Application Insights resource.

az monitor app-insights component linked-storage

Manage linked storage account for an Application Insights component.

az monitor app-insights component linked-storage link

Link a storage account with an Application Insights component.

az monitor app-insights component linked-storage show

Show the details of linked storage account for an Application Insights component.

az monitor app-insights component linked-storage unlink

Unlink a storage account with an Application Insights component.

az monitor app-insights component linked-storage update

Update the linked storage account for an Application Insights component.

az monitor app-insights component show

Get an Application Insights resource.

az monitor app-insights component update

Update properties on an existing Application Insights resource. The primary value which can be updated is kind, which customizes the UI experience.

az monitor app-insights component update-tags

Update tags on an existing Application Insights resource.

az monitor app-insights events

Retrieve events from an application.

az monitor app-insights events show

List events by type or view a single event from an application, specified by type and ID.

az monitor app-insights metrics

Retrieve metrics from an application.

az monitor app-insights metrics get-metadata

Get the metadata for metrics on a particular application.

az monitor app-insights metrics show

View the value of a single metric.

az monitor app-insights query

Execute a query over data in your application.

az monitor app-insights query

Execute a query over data in your application.

az monitor app-insights query --analytics-query
                              --apps
                              [--end-time]
                              [--offset]
                              [--resource-group]
                              [--start-time]

Examples

Execute a simple query over past 1 hour and 30 minutes.

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

Required Parameters

--analytics-query

Query to execute over Application Insights data.

--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.

Optional Parameters

--end-time

End of time range for current operation. Defaults to the current time. Format: date (yyyy-mm-dd) time (hh:mm:ss.xxxxx) timezone (+/-hh:mm).

--offset

Time offset of the query range, in ##d##h format.

default value: 1h
--resource-group -g

Name of resource group. You can configure the default group using az configure --defaults group=<name>.

--start-time

Start-time of time range for which to retrieve data. Format: date (yyyy-mm-dd) time (hh:mm:ss.xxxxx) timezone (+/-hh:mm).