az iot dps linked-hub
管理 Azure IoT 中心设备预配服务实例中链接的 IoT 中心。
命令
| 名称 | 说明 | 类型 | Status |
|---|---|---|---|
| az iot dps linked-hub create |
在 Azure IoT 中心设备预配服务实例中创建链接的 IoT 中心。 |
Core | GA |
| az iot dps linked-hub delete |
更新 Azure IoT 中心设备预配服务实例中链接的 IoT 中心。 |
Core | GA |
| az iot dps linked-hub list |
列出 Azure IoT 中心设备预配服务实例中所有链接的 IoT 中心。 |
Core | GA |
| az iot dps linked-hub show |
显示 Azure IoT 中心设备预配服务中实例链接的 IoT 中心的详细信息。 |
Core | GA |
| az iot dps linked-hub update |
更新 Azure IoT 中心设备预配服务实例中链接的 IoT 中心。 |
Core | GA |
az iot dps linked-hub create
在 Azure IoT 中心设备预配服务实例中创建链接的 IoT 中心。
az iot dps linked-hub create --dps-name
[--allocation-weight]
[--apply-allocation-policy {false, true}]
[--connection-string]
[--hn --hub-name]
[--hrg --hub-resource-group]
[--no-wait]
[--resource-group]
示例
在 Azure IoT 中心设备预配服务实例中创建链接的 IoT 中心
az iot dps linked-hub create --dps-name MyDps --resource-group MyResourceGroup --location westus --connection-string 'HostName=myhub.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=12345'
在 Azure IoT 中心设备预配服务中创建链接的 IoT 中心,该服务应用分配权重和权重为 10
az iot dps linked-hub create --dps-name MyDps --resource-group MyResourceGroup --location westus --allocation-weight 10 --apply-allocation-policy True --connection-string 'HostName=myhub.azure-devices.net;SharedAccessKeyName=iothubowner;SharedAccessKey=12345'
必需参数
IoT 中心设备预配服务名称。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
IoT 中心的分配权重。
一个布尔值,指示是否将分配策略应用于 IoT 中心。
| 属性 | 值 |
|---|---|
| 接受的值: | false, true |
IoT 中心的连接字符串。 如果未使用 --hub-name 提供中心名称,则为必需。
| 属性 | 值 |
|---|---|
| Parameter group: | IoT Hub Identifier Arguments |
IoT 中心名称。
| 属性 | 值 |
|---|---|
| Parameter group: | IoT Hub Identifier Arguments |
IoT 中心资源组名称。
| 属性 | 值 |
|---|---|
| Parameter group: | IoT Hub Identifier Arguments |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
资源组的名称。 可以使用 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 iot dps linked-hub delete
更新 Azure IoT 中心设备预配服务实例中链接的 IoT 中心。
az iot dps linked-hub delete --dps-name
--linked-hub
[--no-wait]
[--resource-group]
示例
在 Azure IoT 中心设备预配服务实例中删除链接的 IoT 中心“MyLinkedHub”
az iot dps linked-hub delete --dps-name MyDps --resource-group MyResourceGroup --linked-hub MyLinkedHub
必需参数
IoT 中心设备预配服务名称。
链接的 IoT 中心的主机名。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
资源组的名称。 可以使用 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 iot dps linked-hub list
列出 Azure IoT 中心设备预配服务实例中所有链接的 IoT 中心。
az iot dps linked-hub list --dps-name
[--resource-group]
示例
列出 MyDps 中的所有链接 IoT 中心
az iot dps linked-hub list --dps-name MyDps --resource-group MyResourceGroup
必需参数
IoT 中心设备预配服务名称。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
资源组的名称。 可以使用 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 iot dps linked-hub show
显示 Azure IoT 中心设备预配服务中实例链接的 IoT 中心的详细信息。
az iot dps linked-hub show --dps-name
--linked-hub
[--resource-group]
示例
在 Azure IoT 中心设备预配服务中显示链接的 IoT 中心“MyLinkedHub”的详细信息
az iot dps linked-hub show --dps-name MyDps --resource-group MyResourceGroup --linked-hub MyLinkedHub
必需参数
IoT 中心设备预配服务名称。
链接的 IoT 中心的主机名。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
资源组的名称。 可以使用 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 iot dps linked-hub update
更新 Azure IoT 中心设备预配服务实例中链接的 IoT 中心。
az iot dps linked-hub update --dps-name
--linked-hub
[--allocation-weight]
[--apply-allocation-policy {false, true}]
[--no-wait]
[--resource-group]
示例
在 Azure IoT 中心设备预配服务中更新链接的 IoT 中心“MyLinkedHub.azure-devices.net”
az iot dps linked-hub update --dps-name MyDps --resource-group MyResourceGroup --linked-hub MyLinkedHub.azure-devices.net --allocation-weight 10 --apply-allocation-policy True
必需参数
IoT 中心设备预配服务名称。
链接的 IoT 中心的主机名。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
IoT 中心的分配权重。
一个布尔值,指示是否将分配策略应用于 Iot 中心。
| 属性 | 值 |
|---|---|
| 接受的值: | false, true |
不等待长时间运行的操作完成。
| 属性 | 值 |
|---|---|
| 默认值: | False |
资源组的名称。 可以使用 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 |