Azure IoT Hub Consumer Group
This page shows how to write Terraform and Azure Resource Manager for IoT Hub Consumer Group and write them securely.
azurerm_iothub_consumer_group (Terraform)
The Consumer Group in IoT Hub can be configured in Terraform with the resource name azurerm_iothub_consumer_group
. The following sections describe 2 examples of how to use the resource and its parameters.
Example Usage from GitHub
resource "azurerm_iothub_consumer_group" "this" {
eventhub_endpoint_name = var.eventhub_endpoint_name
iothub_name = var.iothub_name
name = var.name
resource_group_name = var.resource_group_name
resource "azurerm_iothub_consumer_group" "this" {
eventhub_endpoint_name = var.eventhub_endpoint_name
iothub_name = var.iothub_name
name = var.name
resource_group_name = var.resource_group_name
Parameters
-
eventhub_endpoint_name
required - string -
id
optional computed - string -
iothub_name
required - string -
name
required - string -
resource_group_name
required - string -
timeouts
single block
Explanation in Terraform Registry
Manages a Consumer Group within an IotHub
Microsoft.Devices/IotHubs/eventHubEndpoints/ConsumerGroups (Azure Resource Manager)
The IotHubs/eventHubEndpoints/ConsumerGroups in Microsoft.Devices can be configured in Azure Resource Manager with the resource name Microsoft.Devices/IotHubs/eventHubEndpoints/ConsumerGroups
. The following sections describe how to use the resource and its parameters.
Example Usage from GitHub
An example could not be found in GitHub.
Parameters
apiVersion
required - stringname
required - stringThe name of the consumer group to add.
properties
requiredname
required - stringEventHub consumer group name
type
required - string
Frequently asked questions
What is Azure IoT Hub Consumer Group?
Azure IoT Hub Consumer Group is a resource for IoT Hub of Microsoft Azure. Settings can be wrote in Terraform.
Where can I find the example code for the Azure IoT Hub Consumer Group?
For Terraform, the kevinhead/azurerm and niveklabs/azurerm source code examples are useful. See the Terraform Example section for further details.