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

Gets the details of a specified Event Hubs consumer group, or gets a list of consumer groups in an Event Hub.

Syntax

Get-AzureRmEventHubConsumerGroup
   [-ResourceGroupName] <String>
   [-NamespaceName] <String>
   [-EventHubName] <String>
   [[-ConsumerGroupName] <String>]
   [<CommonParameters>]

Description

The Get-AzureRmEventHubConsumerGroup cmdlet gets either the details of a specified Event Hubs consumer group, or a list of consumer groups in a given Event Hub. If the name of a consumer group is provided, the details of a single consumer group details are returned. If the name of a consumer group is not provided, a list of consumer groups in the specified Event Hub is returned.

Examples

Example 1

PS C:\> Get-AzureRmEventHubConsumerGroup -ResourceGroupName MyResourceGroupName -NamespaceName MyNamespaceName -EventHubName MyEventHubName -ConsumerGroupName MyConsumerGroupName

Gets the consumer group MyConsumerGroupName in the Event Hub MyEventHubName, which exists in the namespace MyNamespaceName with resource group MyResourceGroupName.

Example 2

PS C:\> Get-AzureRmEventHubConsumerGroup -ResourceGroupName MyResourceGroupName -NamespaceName MyNamespaceName -EventHubName MyEventHubName

Gets a list of consumer groups in the Event Hub MyEventHubName, which exists in the namespace MyNamespaceName with resource group MyResourceGroupName.

Required Parameters

-EventHubName

The Event Hub name.

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

The Event Hubs namespace name.

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

Resource group name.

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

Optional Parameters

-ConsumerGroupName

The specified consumer group name.

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

Inputs

System.String

Outputs

System.Collections.Generic.List`1[[Microsoft.Azure.Commands.EventHub.Models.ConsumerGroupAttributes, Microsoft.Azure.Commands.EventHub, Version=0.0.1.0, Culture=neutral, PublicKeyToken=null]]