Microsoft.Devices IotHubs/eventHubEndpoints/ConsumerGroups template reference

Template format

To create a Microsoft.Devices/IotHubs/eventHubEndpoints/ConsumerGroups resource, add the following JSON to the resources section of your template.

{
  "name": "string",
  "type": "Microsoft.Devices/IotHubs/eventHubEndpoints/ConsumerGroups",
  "apiVersion": "2019-03-22"
}

Property values

The following tables describe the values you need to set in the schema.

Microsoft.Devices/IotHubs/eventHubEndpoints/ConsumerGroups object

Name Type Required Value
name string Yes The name of the consumer group to add.
type enum Yes ConsumerGroups
-or-
Microsoft.Devices/IotHubs/eventHubEndpoints/ConsumerGroups

See Set name and type for child resources.
apiVersion enum Yes 2019-03-22

Quickstart templates

The following quickstart templates deploy this resource type.

Template Description
Create an IoT Hub and a Device to Cloud Consumer Group

Deploy to Azure
This template enables you to deploy an IoT Hub instance with device to cloud and cloud to device messaging configurations and a device to cloud consumer group.
Create a Pay As You Go (PAYG) Environment with an IoT Hub

Deploy to Azure
This template enables you to deploy a Pay As You Go (PAYG) Time Series Insights environment that is configured to consume events from an IoT Hub.