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": "2020-03-01"

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

See Set name and type for child resources.
apiVersion enum Yes 2020-03-01

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.