Share via


az monitor app-insights component favorite

Note

This reference is part of the application-insights extension for the Azure CLI (version 2.55.0 or higher). The extension will automatically install the first time you run an az monitor app-insights component favorite command. Learn more about extensions.

Manage component favorite.

Commands

Name Description Type Status
az monitor app-insights component favorite create

Create a new favorites to an Application Insights component.

Extension GA
az monitor app-insights component favorite delete

Delete a favorite that is associated to an Application Insights component.

Extension GA
az monitor app-insights component favorite list

List a list of favorites defined within an Application Insights component.

Extension GA
az monitor app-insights component favorite show

Get a single favorite by its FavoriteId, defined within an Application Insights component.

Extension GA
az monitor app-insights component favorite update

Update a new favorites to an Application Insights component.

Extension GA

az monitor app-insights component favorite create

Experimental Preview Deprecated

Create a new favorites to an Application Insights component.

az monitor app-insights component favorite create --name
                                                  --resource-group
                                                  --resource-name
                                                  [--category]
                                                  [--config]
                                                  [--favorite-id]
                                                  [--favorite-type {shared, user}]
                                                  [--is-generated-from-template {0, 1, f, false, n, no, t, true, y, yes}]
                                                  [--source-type]
                                                  [--tags]
                                                  [--version]

Examples

Create favorite

az monitor app-insights component favorite create -g rg -n favorite-name --resource-name component-name --config 'myconfig' --version ME --favorite-id favorite-name --favorite-type shared

Required Parameters

--name -n
Experimental Preview Deprecated

The Id of a specific favorite defined in the Application Insights component.

--resource-group -g
Experimental Preview Deprecated

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

--resource-name
Experimental Preview Deprecated

The name of the Application Insights component resource.

Optional Parameters

--category
Experimental Preview Deprecated

Favorite category, as defined by the user at creation time.

--config
Experimental Preview Deprecated

Configuration of this particular favorite, which are driven by the Azure portal UX. Configuration data is a string containing valid JSON.

--favorite-id
Experimental Preview Deprecated

Internally assigned unique id of the favorite definition.

--favorite-type
Experimental Preview Deprecated

Enum indicating if this favorite definition is owned by a specific user or is shared between all users with access to the Application Insights component.

Accepted values: shared, user
--is-generated-from-template
Experimental Preview Deprecated

Flag denoting wether or not this favorite was generated from a template.

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--source-type
Experimental Preview Deprecated

The source of the favorite definition.

--tags
Experimental Preview Deprecated

A list of 0 or more tags that are associated with this favorite definition Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--version
Experimental Preview Deprecated

This instance's version of the data model. This can change as new features are added that can be marked favorite. Current examples include MetricsExplorer (ME) and Search.

Global Parameters
--debug
Experimental Preview Deprecated

Increase logging verbosity to show all debug logs.

--help -h
Experimental Preview Deprecated

Show this help message and exit.

--only-show-errors
Experimental Preview Deprecated

Only show errors, suppressing warnings.

--output -o
Experimental Preview Deprecated

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query
Experimental Preview Deprecated

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription
Experimental Preview Deprecated

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose
Experimental Preview Deprecated

Increase logging verbosity. Use --debug for full debug logs.

az monitor app-insights component favorite delete

Experimental Preview Deprecated

Delete a favorite that is associated to an Application Insights component.

az monitor app-insights component favorite delete [--ids]
                                                  [--name]
                                                  [--resource-group]
                                                  [--resource-name]
                                                  [--subscription]
                                                  [--yes]

Examples

Delete favorite

az monitor app-insights component favorite delete -g rg -n favorite-name --resource-name component-name

Required Parameters

Optional Parameters

--ids
Experimental Preview Deprecated

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n
Experimental Preview Deprecated

The Id of a specific favorite defined in the Application Insights component.

--resource-group -g
Experimental Preview Deprecated

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

--resource-name
Experimental Preview Deprecated

The name of the Application Insights component resource.

--subscription
Experimental Preview Deprecated

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--yes -y
Experimental Preview Deprecated

Do not prompt for confirmation.

Default value: False
Global Parameters
--debug
Experimental Preview Deprecated

Increase logging verbosity to show all debug logs.

--help -h
Experimental Preview Deprecated

Show this help message and exit.

--only-show-errors
Experimental Preview Deprecated

Only show errors, suppressing warnings.

--output -o
Experimental Preview Deprecated

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query
Experimental Preview Deprecated

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription
Experimental Preview Deprecated

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose
Experimental Preview Deprecated

Increase logging verbosity. Use --debug for full debug logs.

az monitor app-insights component favorite list

Experimental Preview Deprecated

List a list of favorites defined within an Application Insights component.

az monitor app-insights component favorite list --resource-group
                                                --resource-name
                                                [--can-fetch-content {0, 1, f, false, n, no, t, true, y, yes}]
                                                [--favorite-type {shared, user}]
                                                [--source-type {events, funnel, impact, notebook, retention, segmentation, sessions, userflows}]
                                                [--tags]

Examples

List favorite

az monitor app-insights component favorite list -g rg --resource-name component-name --favorite-type shared --tags [tag]

Required Parameters

--resource-group -g
Experimental Preview Deprecated

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

--resource-name
Experimental Preview Deprecated

The name of the Application Insights component resource.

Optional Parameters

--can-fetch-content
Experimental Preview Deprecated

Flag indicating whether or not to return the full content for each applicable favorite. If false, only return summary content for favorites.

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--favorite-type
Experimental Preview Deprecated

The type of favorite. Value can be either shared or user.

Accepted values: shared, user
Default value: shared
--source-type
Experimental Preview Deprecated

Source type of favorite to return. When left out, the source type defaults to 'other' (not present in this enum).

Accepted values: events, funnel, impact, notebook, retention, segmentation, sessions, userflows
--tags
Experimental Preview Deprecated

Tags that must be present on each favorite returned. Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

Global Parameters
--debug
Experimental Preview Deprecated

Increase logging verbosity to show all debug logs.

--help -h
Experimental Preview Deprecated

Show this help message and exit.

--only-show-errors
Experimental Preview Deprecated

Only show errors, suppressing warnings.

--output -o
Experimental Preview Deprecated

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query
Experimental Preview Deprecated

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription
Experimental Preview Deprecated

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose
Experimental Preview Deprecated

Increase logging verbosity. Use --debug for full debug logs.

az monitor app-insights component favorite show

Experimental Preview Deprecated

Get a single favorite by its FavoriteId, defined within an Application Insights component.

az monitor app-insights component favorite show [--ids]
                                                [--name]
                                                [--resource-group]
                                                [--resource-name]
                                                [--subscription]

Examples

Show favorite

az monitor app-insights component favorite show -g rg -n favorite-name --resource-name component-name

Required Parameters

Optional Parameters

--ids
Experimental Preview Deprecated

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--name -n
Experimental Preview Deprecated

The Id of a specific favorite defined in the Application Insights component.

--resource-group -g
Experimental Preview Deprecated

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

--resource-name
Experimental Preview Deprecated

The name of the Application Insights component resource.

--subscription
Experimental Preview Deprecated

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

Global Parameters
--debug
Experimental Preview Deprecated

Increase logging verbosity to show all debug logs.

--help -h
Experimental Preview Deprecated

Show this help message and exit.

--only-show-errors
Experimental Preview Deprecated

Only show errors, suppressing warnings.

--output -o
Experimental Preview Deprecated

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query
Experimental Preview Deprecated

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription
Experimental Preview Deprecated

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose
Experimental Preview Deprecated

Increase logging verbosity. Use --debug for full debug logs.

az monitor app-insights component favorite update

Experimental Preview Deprecated

Update a new favorites to an Application Insights component.

az monitor app-insights component favorite update [--add]
                                                  [--category]
                                                  [--config]
                                                  [--favorite-id]
                                                  [--favorite-type {shared, user}]
                                                  [--force-string {0, 1, f, false, n, no, t, true, y, yes}]
                                                  [--ids]
                                                  [--is-generated-from-template {0, 1, f, false, n, no, t, true, y, yes}]
                                                  [--name]
                                                  [--remove]
                                                  [--resource-group]
                                                  [--resource-name]
                                                  [--set]
                                                  [--source-type]
                                                  [--subscription]
                                                  [--tags]
                                                  [--version]

Examples

Update favorite

az monitor app-insights component favorite update -g rg -n favorite-name --resource-name component-name --config 'myconfig' --version ME --favorite-id favorite-name --favorite-type shared --tags [tag,test]

Required Parameters

Optional Parameters

--add
Experimental Preview Deprecated

Add an object to a list of objects by specifying a path and key value pairs. Example: --add property.listProperty <key=value, string or JSON string>.

--category
Experimental Preview Deprecated

Favorite category, as defined by the user at creation time.

--config
Experimental Preview Deprecated

Configuration of this particular favorite, which are driven by the Azure portal UX. Configuration data is a string containing valid JSON.

--favorite-id
Experimental Preview Deprecated

Internally assigned unique id of the favorite definition.

--favorite-type
Experimental Preview Deprecated

Enum indicating if this favorite definition is owned by a specific user or is shared between all users with access to the Application Insights component.

Accepted values: shared, user
--force-string
Experimental Preview Deprecated

When using 'set' or 'add', preserve string literals instead of attempting to convert to JSON.

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--ids
Experimental Preview Deprecated

One or more resource IDs (space-delimited). It should be a complete resource ID containing all information of 'Resource Id' arguments. You should provide either --ids or other 'Resource Id' arguments.

--is-generated-from-template
Experimental Preview Deprecated

Flag denoting wether or not this favorite was generated from a template.

Accepted values: 0, 1, f, false, n, no, t, true, y, yes
--name -n
Experimental Preview Deprecated

The Id of a specific favorite defined in the Application Insights component.

--remove
Experimental Preview Deprecated

Remove a property or an element from a list. Example: --remove property.list OR --remove propertyToRemove.

--resource-group -g
Experimental Preview Deprecated

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

--resource-name
Experimental Preview Deprecated

The name of the Application Insights component resource.

--set
Experimental Preview Deprecated

Update an object by specifying a property path and value to set. Example: --set property1.property2=.

--source-type
Experimental Preview Deprecated

The source of the favorite definition.

--subscription
Experimental Preview Deprecated

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--tags
Experimental Preview Deprecated

A list of 0 or more tags that are associated with this favorite definition Support shorthand-syntax, json-file and yaml-file. Try "??" to show more.

--version
Experimental Preview Deprecated

This instance's version of the data model. This can change as new features are added that can be marked favorite. Current examples include MetricsExplorer (ME) and Search.

Global Parameters
--debug
Experimental Preview Deprecated

Increase logging verbosity to show all debug logs.

--help -h
Experimental Preview Deprecated

Show this help message and exit.

--only-show-errors
Experimental Preview Deprecated

Only show errors, suppressing warnings.

--output -o
Experimental Preview Deprecated

Output format.

Accepted values: json, jsonc, none, table, tsv, yaml, yamlc
Default value: json
--query
Experimental Preview Deprecated

JMESPath query string. See http://jmespath.org/ for more information and examples.

--subscription
Experimental Preview Deprecated

Name or ID of subscription. You can configure the default subscription using az account set -s NAME_OR_ID.

--verbose
Experimental Preview Deprecated

Increase logging verbosity. Use --debug for full debug logs.