az tsi event-source
Note
此参考是 Azure CLI(版本 2.50.0 或更高版本) 的 timeseriesinsights 扩展的一部分。 该扩展会在首次运行 az tsi event-source 命令时自动安装。 了解更多关于扩展的信息。
使用 timeseriesinsights 管理事件源。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| az tsi event-source delete |
删除具有指定订阅、资源组和环境中指定名称的事件源。 |
Extension | GA |
| az tsi event-source eventhub |
使用 timeseriesinsights 子组事件中心管理事件源。 |
Extension | GA |
| az tsi event-source eventhub create |
在指定环境中创建事件源。 |
Extension | GA |
| az tsi event-source eventhub update |
更新指定环境中的事件源。 |
Extension | GA |
| az tsi event-source iothub |
使用 timeseriesinsights 子组 iot-hub 管理事件源。 |
Extension | GA |
| az tsi event-source iothub create |
在指定环境中创建事件源。 |
Extension | GA |
| az tsi event-source iothub update |
更新指定环境中的事件源。 |
Extension | GA |
| az tsi event-source list |
列出与订阅关联的所有可用事件源,以及指定的资源组和环境内。 |
Extension | GA |
| az tsi event-source show |
在指定环境中显示具有指定名称的事件源。 |
Extension | GA |
az tsi event-source delete
删除具有指定订阅、资源组和环境中指定名称的事件源。
az tsi event-source delete [--environment-name]
[--event-source-name --name]
[--ids]
[--resource-group]
[--subscription]
[--yes]
示例
DeleteEventSource
az tsi event-source delete --environment-name "env1" --name "es1" --resource-group "rg1"
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
与指定资源组关联的时序见解环境的名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
与指定环境关联的时序见解事件源的名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
环境资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
不要提示确认。
| 属性 | 值 |
|---|---|
| 默认值: | False |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
az tsi event-source list
列出与订阅关联的所有可用事件源,以及指定的资源组和环境内。
az tsi event-source list --environment-name
--resource-group
示例
ListEventSourcesByEnvironment
az tsi event-source list --environment-name "env1" --resource-group "rg1"
必需参数
与指定资源组关联的时序见解环境的名称。
环境资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | 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 tsi event-source show
在指定环境中显示具有指定名称的事件源。
az tsi event-source show [--environment-name]
[--event-source-name --name]
[--ids]
[--resource-group]
[--subscription]
示例
GetEventHubEventSource
az tsi event-source show --environment-name "env1" --name "es1" --resource-group "rg1"
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
与指定资源组关联的时序见解环境的名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
与指定环境关联的时序见解事件源的名称。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
一个或多个资源 ID(以空格分隔)。 它应该是包含“Resource Id”参数的所有信息的完整资源 ID。 应提供 --ids 或其他“Resource Id”参数。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
环境资源组的名称。 可以使用 az configure --defaults group=<name>配置默认组。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。
| 属性 | 值 |
|---|---|
| Parameter group: | Resource Id Arguments |
全局参数
提高日志记录详细程度以显示所有调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |
显示此帮助消息并退出。
仅显示错误,禁止显示警告。
| 属性 | 值 |
|---|---|
| 默认值: | False |
输出格式。
| 属性 | 值 |
|---|---|
| 默认值: | json |
| 接受的值: | json, jsonc, none, table, tsv, yaml, yamlc |
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
增加日志记录详细程度。 使用 --debug 获取完整的调试日志。
| 属性 | 值 |
|---|---|
| 默认值: | False |