Skip to main content

resource_event_hub_consumer_groups

Creates, updates, deletes, gets or lists a resource_event_hub_consumer_groups resource.

Overview

Nameresource_event_hub_consumer_groups
TypeResource
Idazure.iot_hub.resource_event_hub_consumer_groups

Fields

NameDatatypeDescription
idstringThe Event Hub-compatible consumer group identifier.
namestringThe Event Hub-compatible consumer group name.
etagstringThe etag.
propertiesobjectThe tags.
typestringthe resource type.

Methods

NameAccessible byRequired ParamsDescription
getSELECTeventHubEndpointName, name, resourceGroupName, resourceName, subscriptionIdGet a consumer group from the Event Hub-compatible device-to-cloud endpoint for an IoT hub.
listSELECTeventHubEndpointName, resourceGroupName, resourceName, subscriptionIdGet a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub.
createINSERTeventHubEndpointName, name, resourceGroupName, resourceName, subscriptionId, data__propertiesAdd a consumer group to an Event Hub-compatible endpoint in an IoT hub.
deleteDELETEeventHubEndpointName, name, resourceGroupName, resourceName, subscriptionIdDelete a consumer group from an Event Hub-compatible endpoint in an IoT hub.

SELECT examples

Get a list of the consumer groups in the Event Hub-compatible device-to-cloud endpoint in an IoT hub.

SELECT
id,
name,
etag,
properties,
type
FROM azure.iot_hub.resource_event_hub_consumer_groups
WHERE eventHubEndpointName = '{{ eventHubEndpointName }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';

INSERT example

Use the following StackQL query and manifest file to create a new resource_event_hub_consumer_groups resource.

/*+ create */
INSERT INTO azure.iot_hub.resource_event_hub_consumer_groups (
eventHubEndpointName,
name,
resourceGroupName,
resourceName,
subscriptionId,
data__properties,
properties
)
SELECT
'{{ eventHubEndpointName }}',
'{{ name }}',
'{{ resourceGroupName }}',
'{{ resourceName }}',
'{{ subscriptionId }}',
'{{ data__properties }}',
'{{ properties }}'
;

DELETE example

Deletes the specified resource_event_hub_consumer_groups resource.

/*+ delete */
DELETE FROM azure.iot_hub.resource_event_hub_consumer_groups
WHERE eventHubEndpointName = '{{ eventHubEndpointName }}'
AND name = '{{ name }}'
AND resourceGroupName = '{{ resourceGroupName }}'
AND resourceName = '{{ resourceName }}'
AND subscriptionId = '{{ subscriptionId }}';