Stream Analytics Job - Input Data Copy

Laxmi 1 Reputation point
2022-07-18T20:54:09.273+00:00

Can the data from a single Event Hub be duplicated into 2 different outputs a blob and another EventHub in a stream Analytics Job?

Azure Storage Accounts
Azure Storage Accounts
Globally unique resources that provide access to data management services and serve as the parent namespace for the services.
2,722 questions
Azure Event Hubs
Azure Event Hubs
An Azure real-time data ingestion service.
562 questions
Azure Stream Analytics
Azure Stream Analytics
An Azure real-time analytics service designed for mission-critical workloads.
333 questions
{count} votes

1 answer

Sort by: Most helpful
  1. PRADEEPCHEEKATLA-MSFT 78,576 Reputation points Microsoft Employee
    2022-07-19T05:51:21.537+00:00

    Hello @Laxmi ,

    Thanks for the question and using MS Q&A platform.

    You can use a single output per job, or multiple outputs per streaming job (if you need them) by adding multiple INTO clauses to the query.

    An Azure Stream Analytics job consists of an input, query, and an output. There are several output types to which you can send transformed data. This article lists the supported Stream Analytics outputs. When you design your Stream Analytics query, refer to the name of the output by using the INTO clause. You can use a single output per job, or multiple outputs per streaming job (if you need them) by adding multiple INTO clauses to the query.

    Sample query:

    SELECT  
    	*  
    INTO  
    	ArchiveOutput  
    FROM  
    	Input TIMESTAMP BY Time  
      
    SELECT  
    	Make,  
    	System.TimeStamp() AS Time,  
    	COUNT(*) AS [Count]  
    INTO  
    	AlertOutput  
    FROM  
    	Input TIMESTAMP BY Time  
    GROUP BY  
    	Make,  
    	TumblingWindow(second, 10)  
    HAVING  
    	[Count] >= 3  
    

    For more details, refer to Outputs from Azure Stream Analytics and Send data to multiple outputs.

    Hope this will help. Please let us know if any further queries.

    ------------------------------

    • Please don't forget to click on 130616-image.png or upvote 130671-image.png button whenever the information provided helps you. Original posters help the community find answers faster by identifying the correct answer. Here is how
    • Want a reminder to come back and check responses? Here is how to subscribe to a notification
    • If you are interested in joining the VM program and help shape the future of Q&A: Here is how you can be part of Q&A Volunteer Moderators
    0 comments No comments