az monitor app-insights component favorite
Note
此参考是 Azure CLI(版本 2.71.0 或更高版本) 的 application-insights 扩展的一部分。 该扩展将在首次运行 az monitor app-insights 组件收藏夹 命令时自动安装。 了解更多关于扩展的信息。
管理组件收藏夹。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| az monitor app-insights component favorite create |
创建 Application Insights 组件的新收藏夹。 |
Extension | GA |
| az monitor app-insights component favorite delete |
删除与 Application Insights 组件关联的收藏夹。 |
Extension | GA |
| az monitor app-insights component favorite list |
列出 Application Insights 组件中定义的收藏夹列表。 |
Extension | GA |
| az monitor app-insights component favorite show |
通过 Application Insights 组件中定义的 FavoriteId 获取单个收藏夹。 |
Extension | GA |
| az monitor app-insights component favorite update |
将新收藏夹更新到 Application Insights 组件。 |
Extension | GA |
az monitor app-insights component favorite create
创建 Application Insights 组件的新收藏夹。
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]
示例
创建收藏夹
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
必需参数
Application Insights 组件中定义的特定收藏夹的 ID。
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
Application Insights 组件资源的名称。
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
创建时由用户定义的收藏夹类别。
| 属性 | 值 |
|---|---|
| 参数组: | FavoriteProperties Arguments |
此特定收藏夹的配置,由 Azure 门户 UX 驱动。 配置数据是包含有效 JSON 的字符串。
| 属性 | 值 |
|---|---|
| 参数组: | FavoriteProperties Arguments |
在内部分配的收藏夹定义的唯一 ID。
| 属性 | 值 |
|---|---|
| 参数组: | FavoriteProperties Arguments |
枚举,指示此收藏夹定义是否由特定用户拥有,或在有权访问 Application Insights 组件的所有用户之间共享。
| 属性 | 值 |
|---|---|
| 参数组: | FavoriteProperties Arguments |
| 接受的值: | shared, user |
标志表示 wether 或不是此收藏夹是从模板生成的。
| 属性 | 值 |
|---|---|
| 参数组: | FavoriteProperties Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
收藏夹定义的源。
| 属性 | 值 |
|---|---|
| 参数组: | FavoriteProperties Arguments |
与此收藏夹定义关联的 0 个或多个标记的列表支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | FavoriteProperties Arguments |
此实例的数据模型版本。 随着添加可标记为收藏的新功能,这可以更改。 当前示例包括 MetricsExplorer (ME) 和搜索。
| 属性 | 值 |
|---|---|
| 参数组: | FavoriteProperties Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az monitor app-insights component favorite delete
删除与 Application Insights 组件关联的收藏夹。
az monitor app-insights component favorite delete [--ids]
[--name]
[--resource-group]
[--resource-name]
[--subscription]
[--yes]
示例
删除收藏夹
az monitor app-insights component favorite delete -g rg -n favorite-name --resource-name component-name
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
Application Insights 组件中定义的特定收藏夹的 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
Application Insights 组件资源的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
不要提示确认。
| 属性 | 值 |
|---|---|
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az monitor app-insights component favorite list
列出 Application Insights 组件中定义的收藏夹列表。
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]
示例
列出收藏夹
az monitor app-insights component favorite list -g rg --resource-name component-name --favorite-type shared --tags [tag]
必需参数
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
Application Insights 组件资源的名称。
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
指示是否返回每个适用收藏夹的完整内容的标志。 如果为 false,则仅返回收藏夹的摘要内容。
| 属性 | 值 |
|---|---|
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
收藏夹的类型。 值可以是共享的,也可以是用户。
| 属性 | 值 |
|---|---|
| 默认值: | shared |
| 接受的值: | shared, user |
要返回的收藏夹的源类型。 如果省去,源类型默认为“other”(此枚举中不存在)。
| 属性 | 值 |
|---|---|
| 接受的值: | events, funnel, impact, notebook, retention, segmentation, sessions, userflows |
必须在返回的每个收藏夹上存在的标记。 支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az monitor app-insights component favorite show
通过 Application Insights 组件中定义的 FavoriteId 获取单个收藏夹。
az monitor app-insights component favorite show [--ids]
[--name]
[--resource-group]
[--resource-name]
[--subscription]
示例
显示收藏夹
az monitor app-insights component favorite show -g rg -n favorite-name --resource-name component-name
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
Application Insights 组件中定义的特定收藏夹的 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
Application Insights 组件资源的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az monitor app-insights component favorite update
将新收藏夹更新到 Application Insights 组件。
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]
示例
更新收藏夹
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]
可选参数
以下参数是可选的,但根据上下文,命令可能需要一个或多个参数才能成功执行。
通过指定路径和键值对将对象添加到对象列表。 示例:--add property.listProperty <key=value, string or JSON string>。
| 属性 | 值 |
|---|---|
| 参数组: | Generic Update Arguments |
创建时由用户定义的收藏夹类别。
| 属性 | 值 |
|---|---|
| 参数组: | FavoriteProperties Arguments |
此特定收藏夹的配置,由 Azure 门户 UX 驱动。 配置数据是包含有效 JSON 的字符串。
| 属性 | 值 |
|---|---|
| 参数组: | FavoriteProperties Arguments |
在内部分配的收藏夹定义的唯一 ID。
| 属性 | 值 |
|---|---|
| 参数组: | FavoriteProperties Arguments |
枚举,指示此收藏夹定义是否由特定用户拥有,或在有权访问 Application Insights 组件的所有用户之间共享。
| 属性 | 值 |
|---|---|
| 参数组: | FavoriteProperties Arguments |
| 接受的值: | shared, user |
使用“set”或“add”时,保留字符串文本,而不是尝试转换为 JSON。
| 属性 | 值 |
|---|---|
| 参数组: | Generic Update Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
标志表示 wether 或不是此收藏夹是从模板生成的。
| 属性 | 值 |
|---|---|
| 参数组: | FavoriteProperties Arguments |
| 接受的值: | 0, 1, f, false, n, no, t, true, y, yes |
Application Insights 组件中定义的特定收藏夹的 ID。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
从列表中删除属性或元素。 示例: --remove property.list <indexToRemove> OR --remove propertyToRemove.
| 属性 | 值 |
|---|---|
| 参数组: | Generic Update Arguments |
资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
Application Insights 组件资源的名称。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
通过指定要设置的属性路径和值来更新对象。 示例:--set property1.property2=<value>。
| 属性 | 值 |
|---|---|
| 参数组: | Generic Update Arguments |
收藏夹定义的源。
| 属性 | 值 |
|---|---|
| 参数组: | FavoriteProperties Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| 参数组: | Resource Id Arguments |
与此收藏夹定义关联的 0 个或多个标记的列表支持速记语法、json-file 和 yaml-file。 请尝试“??” 以显示更多内容。
| 属性 | 值 |
|---|---|
| 参数组: | FavoriteProperties Arguments |
此实例的数据模型版本。 随着添加可标记为收藏的新功能,这可以更改。 当前示例包括 MetricsExplorer (ME) 和搜索。
| 属性 | 值 |
|---|---|
| 参数组: | FavoriteProperties Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |