Problem creating eventhub consumer-group (IOT-hub, 2021-03-03-preview API) #15545
Labels
customer-reported
Issues that are reported by GitHub users external to the Azure organization.
IoT
Mgmt
This issue is related to a management-plane library.
needs-team-attention
Workflow: This issue needs attention from Azure service team or SDK team
question
The issue doesn't require a change to the product in order to be resolved. Most issues start as that
Service Attention
Workflow: This issue is responsible by Azure service team.
The
IotHubResourceClient.CreateEventHubConsumerGroup
function requires aEventHubConsumerGroupBodyDescription
object that is sent in the body. This structure isn't documented and has been added in 2021-03-03-preview. It seems that it should also contain the consumer-group name (as seen in this example). This seems redundant (it's already in the URL), but to be able to use the SDK I send the name of the consumer-group too.I have issued a request to create a consumer-group that generates the following request (I have removed the subscription-id for privacy reasons and formatted the JSON data for clarity):
The
name
is sent in the body and the response is processed correctly, because the following response is received:There seems to be an issue with the returned
properties
field in the response. The entire response is unmarshalled into theEventHubConsumerGroupInfo
structure:The structure contains the
properties
field, but it's marked asmap[string]*string
. The API returns aproperties
field that also embeds the input properties map, so this can't be deserialized and fails. I guess it's a buck in the API back-end, because it seems pretty useless to have properties within properties, but I did also check the .NET SDK and it defines the properties like this:I guess creating consumer-groups is broken with the 2021-03-03-preview API. I also am wondering why the
name
should also be sent in the request body.The text was updated successfully, but these errors were encountered: