你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

az iot ops asset endpoint certificate

注意

此参考是 Azure CLI(版本 2.46.0 或更高版本)的 azure-iot-ops 扩展的一部分。 该扩展将在首次运行 az iot ops 资产终结点证书 命令时自动安装。 详细了解扩展。

命令组“iot ops”处于预览状态,正在开发中。 参考和支持级别: https://aka.ms/CLI_refstatus

管理资产终结点中拥有的证书。

命令

名称 说明 类型 状态
az iot ops asset endpoint certificate add

将拥有的证书添加到资产终结点。

扩展 预览
az iot ops asset endpoint certificate list

列出资产终结点中拥有的证书。

扩展 预览
az iot ops asset endpoint certificate remove

删除资产终结点中拥有的证书。

扩展 预览

az iot ops asset endpoint certificate add

预览

命令组“iot ops”处于预览状态,正在开发中。 参考和支持级别: https://aka.ms/CLI_refstatus

将拥有的证书添加到资产终结点。

az iot ops asset endpoint certificate add --endpoint
                                          --resource-group
                                          --secret-ref
                                          --thumbprint
                                          [--password-ref]

示例

将证书添加到资产终结点。

az iot ops asset endpoint certificate add --endpoint {asset_endpoint} -g {resource_group} --secret-ref {secret_reference} --thumbprint {thumbprint} --password-ref {password_reference}

将证书添加到资产终结点,该终结点使用具有预填充值的密码。

az iot ops asset endpoint certificate add --endpoint myAssetEndpoint -g myRG --secret-ref "aio-opc-ua-broker-client/certificate" --thumbprint 000000000000000000 --password-ref "aio-opc-ua-broker-client/certificate-password"

必需参数

--endpoint

资产终结点名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

--secret-ref --sr

包含证书的 der 文件的参考。 引用的文件应包含证书和密钥。

--thumbprint -t

证书指纹。

可选参数

--password-ref --pr

包含证书密码的 pem 文件的参考。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az iot ops asset endpoint certificate list

预览

命令组“iot ops”处于预览状态,正在开发中。 参考和支持级别: https://aka.ms/CLI_refstatus

列出资产终结点中拥有的证书。

az iot ops asset endpoint certificate list --endpoint
                                           --resource-group

示例

列出资产终结点中的所有自有证书。

az iot ops asset endpoint certificate list --endpoint {asset_endpoint} -g {resource_group}

必需参数

--endpoint

资产终结点名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。

az iot ops asset endpoint certificate remove

预览

命令组“iot ops”处于预览状态,正在开发中。 参考和支持级别: https://aka.ms/CLI_refstatus

删除资产终结点中拥有的证书。

az iot ops asset endpoint certificate remove --endpoint
                                             --resource-group
                                             --thumbprint

示例

从资产终结点中删除证书。

az iot ops asset endpoint certificate remove --endpoint {asset_endpoint} -g {resource_group} --thumbprint {thumbprint}

必需参数

--endpoint

资产终结点名称。

--resource-group -g

资源组的名称。 可以使用 az configure --defaults group=<name> 配置默认组。

--thumbprint -t

证书指纹。

全局参数
--debug

提高日志记录详细程度以显示所有调试日志。

--help -h

显示此帮助消息并退出。

--only-show-errors

只显示错误,取消显示警告。

--output -o

输出格式。

接受的值: json, jsonc, none, table, tsv, yaml, yamlc
默认值: json
--query

JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/

--subscription

订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID 配置默认订阅。

--verbose

提高日志记录详细程度。 使用 --debug 获取完整的调试日志。