Azure Iothub deletes consumer group while doing a manula failover

VikasRajareddy-9365 26 Reputation points
2022-12-19T07:35:11.39+00:00

We had created a stream analytics which had the Iothub had as the input.
But, when we do a manual failover on the Azure iothub , The stream analytics through the below error showing consumer groups are deleted .

Even though the Iothub had the failover successful the data was not flowing to the stream analytics.

So should something be done to consumer groups while doing a manual failover??271985-error.png

Azure IoT Hub
Azure IoT Hub
An Azure service that enables bidirectional communication between internet of things (IoT) devices and applications.
1,115 questions
Azure Stream Analytics
Azure Stream Analytics
An Azure real-time analytics service designed for mission-critical workloads.
330 questions
{count} votes

1 answer

Sort by: Most helpful
  1. AshokPeddakotla-MSFT 27,386 Reputation points
    2022-12-29T02:43:04.52+00:00

    @VikasRajareddy-9365

    It is possible that the consumer groups may become unavailable if the manual failover process affects the availability of the IoT hub or the underlying infrastructure. If the consumer groups are unavailable after a manual failover, the stream analytics job may show an error indicating that the consumer groups have been deleted.

    If this occurs again, you can try manually recreating the consumer groups using the Azure portal, Azure IoT Hub REST APIs, or the Azure IoT SDKs and see if it helps. You may also need to reconfigure the stream analytics job to use the newly created consumer groups.

    It is important to note that performing a manual failover of an IoT hub can have significant impacts on the availability and performance of the service, and it should only be done as a last resort in the case of an emergency. We recommend using a test IoT hub rather than one running in production.

    Hope this helps. Do let us know if you have any other queries.

    If the response is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments