你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
az healthcareapis workspace iot-connector
注意
此参考是 Azure CLI(版本 2.15.0 或更高版本)的医疗保健apis 扩展的一部分。 该扩展将在首次运行 az healthcareapis workspace iot-connector 命令时自动安装。 详细了解扩展。
使用 healthcareapis 管理 iot 连接器。
命令
az healthcareapis workspace iot-connector create
使用指定的参数创建 IoT 连接or 资源。
az healthcareapis workspace iot-connector create --iot-connector-name
--resource-group
--workspace-name
[--content]
[--etag]
[--identity-type {None, SystemAssigned, SystemAssigned,UserAssigned, UserAssigned}]
[--ingestion-endpoint-configuration]
[--location]
[--no-wait]
[--tags]
[--user-assigned-identities]
示例
创建 IoT 连接or
az healthcareapis workspace iot-connector create --identity-type "SystemAssigned" --location "westus" --content "{\"template\":[{\"template\":{\"deviceIdExpression\":\"$.deviceid\",\"timestampExpression\":\"$.measurementdatetime\",\"typeMatchExpression\":\"$..[?(@heartrate)]\",\"typeName\":\"heartrate\",\"values\":[{\"required\":\"true\",\"valueExpression\":\"$.heartrate\",\"valueName\":\"hr\"}]},\"templateType\":\"JsonPathContent\"}],\"templateType\":\"CollectionContent\"}" --ingestion-endpoint-configuration consumer-group="ConsumerGroupA" event-hub-name="MyEventHubName" fully-qualified-event-hub-namespace="myeventhub.servicesbus.windows.net" --tags additionalProp1="string" additionalProp2="string" additionalProp3="string" --name "blue" --resource-group "testRG" --workspace-name "workspace1"
必需参数
IoT 连接or 资源的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
工作区资源的名称。
可选参数
映射。 预期值:json-string/json-file/@json-file。
与资源关联的 etag,在编辑资源时用于乐观并发。
指定的标识类型,当前允许 SystemAssigned 和 None。
源配置。
用法:--ingestion-endpoint-configuration event-hub-name=XX consumer-group=XX fully-qualified-event-hub-namespace=XX
event-hub-name:要连接到的事件中心名称。使用者组:要连接到的事件中心的使用者组。fully-qualified-event-hub-namespace:要连接到的事件中心的完全限定命名空间。
Location。 az account list-locations
中的值。 可以使用 az configure --defaults location=<location>
配置默认位置。
不等待长时间运行的操作完成。
空格分隔标记:key[=value] [key[=value] ...]。使用“”清除现有标记。
与资源关联的用户分配标识集。 userAssignedIdentities 字典密钥将为 ARM 资源 ID,格式为“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 字典值可以是请求中的空对象({})。 预期值:json-string/json-file/@json-file。
全局参数
提高日志记录详细程度以显示所有调试日志。
显示此帮助消息并退出。
只显示错误,取消显示警告。
输出格式。
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
提高日志记录详细程度。 使用 --debug 获取完整的调试日志。
az healthcareapis workspace iot-connector delete
删除 IoT 连接or。
az healthcareapis workspace iot-connector delete [--ids]
[--iot-connector-name]
[--no-wait]
[--resource-group]
[--subscription]
[--workspace-name]
[--yes]
示例
删除 IoT 连接or
az healthcareapis workspace iot-connector delete --name "blue" --resource-group "testRG" --workspace-name "workspace1"
可选参数
一个或多个资源 ID(空格分隔)。 它应该是包含“资源 ID”参数的所有信息的完整资源 ID。 应提供 --id 或其他“资源 ID”参数。
IoT 连接or 资源的名称。
不等待长时间运行的操作完成。
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
工作区资源的名称。
不提示确认。
全局参数
提高日志记录详细程度以显示所有调试日志。
显示此帮助消息并退出。
只显示错误,取消显示警告。
输出格式。
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
提高日志记录详细程度。 使用 --debug 获取完整的调试日志。
az healthcareapis workspace iot-connector list
列出给定工作区的所有 IoT 连接ors。
az healthcareapis workspace iot-connector list --resource-group
--workspace-name
示例
列出 iotconnectors
az healthcareapis workspace iot-connector list --resource-group "testRG" --workspace-name "workspace1"
必需参数
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
工作区资源的名称。
全局参数
提高日志记录详细程度以显示所有调试日志。
显示此帮助消息并退出。
只显示错误,取消显示警告。
输出格式。
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
提高日志记录详细程度。 使用 --debug 获取完整的调试日志。
az healthcareapis workspace iot-connector show
获取指定 IoT 连接or 的属性。
az healthcareapis workspace iot-connector show [--ids]
[--iot-connector-name]
[--resource-group]
[--subscription]
[--workspace-name]
示例
获取 IoT 连接or
az healthcareapis workspace iot-connector show --name "blue" --resource-group "testRG" --workspace-name "workspace1"
可选参数
一个或多个资源 ID(空格分隔)。 它应该是包含“资源 ID”参数的所有信息的完整资源 ID。 应提供 --id 或其他“资源 ID”参数。
IoT 连接or 资源的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
工作区资源的名称。
全局参数
提高日志记录详细程度以显示所有调试日志。
显示此帮助消息并退出。
只显示错误,取消显示警告。
输出格式。
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
提高日志记录详细程度。 使用 --debug 获取完整的调试日志。
az healthcareapis workspace iot-connector update
修补 IoT 连接or。
az healthcareapis workspace iot-connector update [--identity-type {None, SystemAssigned, SystemAssigned,UserAssigned, UserAssigned}]
[--ids]
[--iot-connector-name]
[--no-wait]
[--resource-group]
[--subscription]
[--tags]
[--user-assigned-identities]
[--workspace-name]
示例
修补 IoT 连接or
az healthcareapis workspace iot-connector update --name "blue" --identity-type "SystemAssigned" --tags additionalProp1="string" additionalProp2="string" additionalProp3="string" --resource-group "testRG" --workspace-name "workspace1"
可选参数
指定的标识类型,当前允许 SystemAssigned 和 None。
一个或多个资源 ID(空格分隔)。 它应该是包含“资源 ID”参数的所有信息的完整资源 ID。 应提供 --id 或其他“资源 ID”参数。
IoT 连接or 资源的名称。
不等待长时间运行的操作完成。
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
空格分隔标记:key[=value] [key[=value] ...]。使用“”清除现有标记。
与资源关联的用户分配标识集。 userAssignedIdentities 字典密钥将为 ARM 资源 ID,格式为“/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ManagedIdentity/userAssignedIdentities/{identityName}”。 字典值可以是请求中的空对象({})。 预期值:json-string/json-file/@json-file。
工作区资源的名称。
全局参数
提高日志记录详细程度以显示所有调试日志。
显示此帮助消息并退出。
只显示错误,取消显示警告。
输出格式。
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
提高日志记录详细程度。 使用 --debug 获取完整的调试日志。
az healthcareapis workspace iot-connector wait
将 CLI 置于等待状态,直到满足 healthcareapis 工作区 iot-connector 的条件。
az healthcareapis workspace iot-connector wait [--created]
[--custom]
[--deleted]
[--exists]
[--ids]
[--interval]
[--iot-connector-name]
[--resource-group]
[--subscription]
[--timeout]
[--updated]
[--workspace-name]
示例
暂停执行下一行 CLI 脚本,直到成功创建 healthcareapis 工作区 iot-connector。
az healthcareapis workspace iot-connector wait --name "blue" --resource-group "testRG" --workspace-name "workspace1" --created
暂停执行下一行 CLI 脚本,直到 healthcareapis 工作区 iot-connector 成功更新。
az healthcareapis workspace iot-connector wait --name "blue" --resource-group "testRG" --workspace-name "workspace1" --updated
暂停执行下一行 CLI 脚本,直到成功删除 healthcareapis 工作区 iot-connector。
az healthcareapis workspace iot-connector wait --name "blue" --resource-group "testRG" --workspace-name "workspace1" --deleted
可选参数
等待在“Succeeded”中使用“provisioningState”创建。
等待条件满足自定义 JMESPath 查询。 例如 provisioningState!='InProgress', instanceView.statuses[?code=='PowerState/running']。
等到删除为止。
等待资源存在。
一个或多个资源 ID(空格分隔)。 它应该是包含“资源 ID”参数的所有信息的完整资源 ID。 应提供 --id 或其他“资源 ID”参数。
轮询间隔(以秒为单位)。
IoT 连接or 资源的名称。
资源组的名称。 可以使用 az configure --defaults group=<name>
配置默认组。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
最大等待(以秒为单位)。
等到 provisioningState 更新为“Succeeded”。
工作区资源的名称。
全局参数
提高日志记录详细程度以显示所有调试日志。
显示此帮助消息并退出。
只显示错误,取消显示警告。
输出格式。
JMESPath 查询字符串。 有关更多信息和示例,请参阅 http://jmespath.org/。
订阅的名称或 ID。 可以使用 az account set -s NAME_OR_ID
配置默认订阅。
提高日志记录详细程度。 使用 --debug 获取完整的调试日志。