# AzureEventHubConsumerGroupResource

- Kind: `class`
- Package: [Aspire.Hosting.Azure.EventHubs](/reference/api/csharp/aspire.hosting.azure.eventhubs.md)
- Version: `13.4.0`
- Namespace: `Aspire.Hosting.Azure`
- Target framework: `net8.0`
- Source: [GitHub](https://github.com/microsoft/aspire/blob/cbc352350f1a9bafbaff10d14a2c8de4ac186a48/src/Aspire.Hosting.Azure.EventHubs/AzureEventHubConsumerGroupResource.cs)
- Inherits: `Resource`
- Implements: `IExpressionValue`, `IManifestExpressionProvider`, `IResource`, `IResourceWithConnectionString`, `IResourceWithParent`, `IResourceWithParent<AzureEventHubResource>`, `IValueProvider`, `IValueWithReferences`, `IResourceWithAzureFunctionsConfig`

Represents an Azure Event Hub Consumer Group. Initializes a new instance of the [AzureEventHubConsumerGroupResource](/reference/api/csharp/aspire.hosting.azure.eventhubs/azureeventhubconsumergroupresource.md) class.

## Definition

```csharp
namespace Aspire.Hosting.Azure;

public class AzureEventHubConsumerGroupResource
    : Aspire.Hosting.ApplicationModel.Resource,
      Aspire.Hosting.ApplicationModel.IExpressionValue,
      Aspire.Hosting.ApplicationModel.IManifestExpressionProvider,
      Aspire.Hosting.ApplicationModel.IResource,
      Aspire.Hosting.ApplicationModel.IResourceWithConnectionString,
      Aspire.Hosting.ApplicationModel.IResourceWithParent,
      Aspire.Hosting.ApplicationModel.IResourceWithParent<Aspire.Hosting.Azure.AzureEventHubResource>,
      Aspire.Hosting.ApplicationModel.IValueProvider,
      Aspire.Hosting.ApplicationModel.IValueWithReferences,
      Aspire.Hosting.Azure.IResourceWithAzureFunctionsConfig
{
    // ...
}
```

## Remarks

Use `AzureProvisioningResourceExtensions.ConfigureInfrastructure` to configure specific `Azure.Provisioning` properties.

## Constructors

- [AzureEventHubConsumerGroupResource(string, string, AzureEventHubResource)](/reference/api/csharp/aspire.hosting.azure.eventhubs/azureeventhubconsumergroupresource/constructors.md#constructor-string-string-azureeventhubresource) -- Represents an Azure Event Hub Consumer Group. Initializes a new instance of the [AzureEventHubConsumerGroupResource](/reference/api/csharp/aspire.hosting.azure.eventhubs/azureeventhubconsumergroupresource.md) class.

## Properties

- [ConnectionStringExpression](/reference/api/csharp/aspire.hosting.azure.eventhubs/azureeventhubconsumergroupresource/properties.md#connectionstringexpression) : `ReferenceExpression` `get` -- Gets the connection string expression for the Azure Event Hub Consumer Group.
- [ConsumerGroupName](/reference/api/csharp/aspire.hosting.azure.eventhubs/azureeventhubconsumergroupresource/properties.md#consumergroupname) : `string` `get; set` -- The event hub consumer group name.
- [Parent](/reference/api/csharp/aspire.hosting.azure.eventhubs/azureeventhubconsumergroupresource/properties.md#parent) : [AzureEventHubResource](/reference/api/csharp/aspire.hosting.azure.eventhubs/azureeventhubresource.md) `get` -- Gets the parent Azure Event Hub resource.
