---
title: Azure RM - IoT Hub Consumer Group
slug: homologacao-atmosphere/azure-rm-iot-hub-consumer-group
description: Learn how to easily create and delete an Azure IoT hub with this comprehensive document. Discover the essential parameters like event hub, hub name, consumer group name, resource group name, and state. Additionally, explore step-by-step examples on creati
createdAt: 2021-06-28T16:44:48.000Z
---

## Resumo

- Create, delete an Azure IoT hub.

## Parâmetros

| **Parâmetro**                | **Tipo** | **Escolhas \| Valor Padrão** | **Comentários**                                                                                   |
| ---------------------------- | -------- | ---------------------------- | ------------------------------------------------------------------------------------------------- |
| event\_hub                   | string   | Default:<br />"events"       | Event hub endpoint name.                                                                          |
| hub - *required*             | string   |                              | Name of the IoT hub.                                                                              |
| name                         | string   |                              | Name of the consumer group.                                                                       |
| resource\_group - *required* | string   |                              | Name of resource group.                                                                           |
| state                        | string   |                              | State of the IoT hub. Use present to create or update an IoT hub and absent to delete an IoT hub. |

Extende fragmentos da documentação dos módulos azure e azure\_tags.

## Exemplos

```yaml
# Exemplo: Create an IoT hub consumer group
- azure_rm_iothubconsumergroup:
    name: test
    resource_group: myResourceGroup
    hub: Testing
```



## Valores retornados

| **Chave** | **Tipo** | **Retornado quando** | **Descrição**                      |
| --------- | -------- | -------------------- | ---------------------------------- |
| id        | string   | Sucesso              | Resource ID of the consumer group. |
| name      | string   | Sucesso              | Name of the consumer group.        |

