az monitor app-insights events

Retrieve events from an application.

Commands

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 events show

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

az monitor app-insights events show --app
                                    --type
                                    [--end-time]
                                    [--event]
                                    [--offset]
                                    [--resource-group]
                                    [--start-time]

Examples

Get an availability result by ID.

az monitor app-insights events show --app 578f0e27-12e9-4631-bc02-50b965da2633 --type availabilityResults --event b2cf08df-bf42-4278-8d2c-5b55f85901fe

List availability results from the last 24 hours.

az monitor app-insights events show --app 578f0e27-12e9-4631-bc02-50b965da2633 --type availabilityResults --offset 24h

Required Parameters

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

--type

The type of events to retrieve.

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

--event

GUID of the event to retrieve. This could be obtained by first listing and filtering events, then selecting an event of interest.

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