Get-​Azure​Rm​Iot​Hub​Event​Hub​Consumer​Group

Gets all the eventhub consumergroups.

Syntax

Get-AzureRmIotHubEventHubConsumerGroup
   [-ResourceGroupName] <String>
   [-Name] <String>
   [-EventHubEndpointName] <String>
   [<CommonParameters>]

Description

Gets all the eventhub consumergroups for the different EventHubs used by IotHub.

Examples

Example 1 Gets all the eventhub consumergroups for the telemetry eventhub

PS C:\> Get-AzureRmIotHubEventHubConsumerGroup -ResourceGroupName "myresourcegroup" -Name "myiothub" -EventHubEndpointName "events"

Gets all the eventhub consumergroups for the telemetry eventhub for the iothub named myiothub

Example 2 Gets all the eventhub consumergroups for the operationsmonitoring eventhub

PS C:\> Get-AzureRmIotHubEventHubConsumerGroup -ResourceGroupName "myresourcegroup" -Name "myiothub" -EventHubEndpointName "operationsMonitoringEvents"

Gets all the eventhub consumergroups for the operationsMonitoringEvents eventhub for the iothub named myiothub

Required Parameters

-EventHubEndpointName

Name of the Event Hub endpoint. The possible values are events, operationsMonitoringEvents.

Type:String
Position:2
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-Name

Name of hte IoT hub.

Type:String
Position:1
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False
-ResourceGroupName

Name of the resource group.

Type:String
Position:0
Default value:None
Accept pipeline input:True (ByPropertyName)
Accept wildcard characters:False

Inputs

System.String

Outputs

System.Collections.Generic.IEnumerable`1[[System.String, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089]]