az iot hub device-identity connection-string
Note
此参考是 Azure CLI(版本 2.59.0 或更高版本)的 azure-iot 扩展的一部分。 该扩展会在首次运行 az iot hub device-identity connection-string 命令时自动安装。 了解更多关于扩展的信息。
管理 IoT 设备的连接字符串。
命令
名称 | 说明 | 类型 | Status |
---|---|---|---|
az iot hub device-identity connection-string show |
显示给定IoT 中心设备连接字符串。 |
Extension | GA |
az iot hub device-identity connection-string show
显示给定IoT 中心设备连接字符串。
az iot hub device-identity connection-string show --device-id
[--auth-type {key, login}]
[--hub-name]
[--key-type --kt {primary, secondary}]
[--login]
[--resource-group]
必需参数
目标设备 ID。
可选参数
The following parameters are optional, but depending on the context, one or more might become required for the command to execute successfully.
指示操作是应自动派生策略密钥还是使用当前的 Azure AD 会话。 如果身份验证类型为登录,并且提供资源主机名,则除非需要,否则将跳过资源查找。可以使用 < a0/a0> 配置默认值 az configure --defaults iothub-data-auth-type={auth-type-value}
。
属性 | 值 |
---|---|
Parameter group: | Access Control Arguments |
默认值: | key |
接受的值: | key, login |
IoT 中心名称或主机名。 如果未提供 --login,则为必需。
属性 | 值 |
---|---|
Parameter group: | IoT Hub Identifier Arguments |
用于身份验证的共享访问策略密钥类型。
属性 | 值 |
---|---|
默认值: | primary |
接受的值: | primary, secondary |
此命令支持具有执行操作权限的实体连接字符串。 用于避免通过“az login”进行会话登录。 如果同时提供实体连接字符串和名称,则连接字符串优先。 如果未提供 --hub-name,则为必需。
属性 | 值 |
---|---|
Parameter group: | IoT Hub Identifier Arguments |
资源组的名称。 可以使用 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 |