你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn。
Get-AzIotHubMessageEnrichment
列出 IoT 中心的所有消息扩充或特定消息扩充。
语法
Get-AzIotHubMessageEnrichment
[-ResourceGroupName] <String>
[-Name] <String>
[-Key <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzIotHubMessageEnrichment
[-InputObject] <PSIotHub>
[-Key <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
Get-AzIotHubMessageEnrichment
[-ResourceId] <String>
[-Key <String>]
[-DefaultProfile <IAzureContextContainer>]
[<CommonParameters>]
说明
有关 Azure IoT 中心的消息扩充的详细说明,请参阅 https://learn.microsoft.com/azure/iot-hub/iot-hub-message-enrichments-overview
示例
示例 1
Get-AzIotHubMessageEnrichment -ResourceGroupName "myresourcegroup" -Name "myiothub"
Key Value Endpoint(s)
--- ----- -----------
key1 value1 {endpoint1, endpoint2}
key2 value2 {endpoint3, endpoint4}
列出 MyIotHub 中的所有消息扩充
示例 2
Get-AzIotHubMessageEnrichment -ResourceGroupName "myresourcegroup" -Name "myiothub" -Key "newKey"
Key : key1
Value : value1
Endpoint(s) : {endpoint1, endpoint2}
显示有关“newKey”消息扩充的详细信息。
参数
-DefaultProfile
用于与 Azure 通信的凭据、帐户、租户和订阅。
类型: | IAzureContextContainer |
别名: | AzContext, AzureRmContext, AzureCredential |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-InputObject
IotHub 对象
类型: | PSIotHub |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |
-Key
扩充的密钥。
类型: | String |
Position: | Named |
默认值: | None |
必需: | False |
接受管道输入: | False |
接受通配符: | False |
-Name
IoT 中心的名称
类型: | String |
Position: | 1 |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ResourceGroupName
资源组的名称
类型: | String |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | False |
接受通配符: | False |
-ResourceId
IotHub 资源 ID
类型: | String |
Position: | 0 |
默认值: | None |
必需: | True |
接受管道输入: | True |
接受通配符: | False |