You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: articles/stream-analytics/visual-studio-code-local-run-live-input.md
+11-11Lines changed: 11 additions & 11 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -21,32 +21,32 @@ Testing your Stream Analytics query locally against live stream input is a cruci
21
21
## Define a live stream input
22
22
23
23
1. Right-click the **Inputs** folder in your Stream Analytics project and select **ASA: Add Input**.
24
-

24
+

25
25
OR press **Ctrl+Shift+P** to open the command palette and enter **ASA: Add Input**. Then choose the query script for processing the input stream.
26
-

26
+

27
27
28
28
2. Choose a live input source type from the drop-down list, **Select from your Azure Subscriptions** and enter a name for the input source.
29
-

29
+

30
30
31
31
3. You see a new JSON file created under the **Input** folder. Open the file and **Select from your subscriptions** to help you configure your Event Hubs input.
32
-

32
+

33
33
34
34
4. Select **Preview data** to validate if the live input is successfully configured.
35
-

35
+

36
36
37
37
## Run query locally
38
38
39
39
Open your query file, select **Run locally** or the **Play** button on the menu bar to open a **Local run option** window for configuring local run mode.
40
40
41
-

41
+

42
42
43
43
Choose **Use Live Input and Local Output** to run job locally against live input stream and produce output results to a local folder. Then select **Run** to start running job locally.
44
44
45
-

45
+

46
46
47
47
You can see a **Local test** window is opened and refreshed every 3 seconds. The output results are stored as JSON format in **LocalRunOutputs** folder.
48
48
49
-

49
+

50
50
51
51
52
52
## Specify input partitions for local testing
@@ -57,7 +57,7 @@ To avoid ingesting all data from Event Hubs, you can specify specific partitions
57
57
2. Under **Select the input partitions** section and choose **Custom**.
58
58
3. Enter the specific partition numbers that you want to ingest data from for your local testing.
59
59
60
-

60
+

61
61
62
62
By specifying the partitions, you can focus on testing your query logic without worrying about a large volume of data. This feature allows for more efficient and targeted testing of your Stream Analytics job.
63
63
@@ -68,11 +68,11 @@ Once you have completed testing your query locally, you can submit your Stream A
68
68
2. In the submit options window, you can **update an existing job in Azure** or **create a new job** for the upload.
69
69
3. Provide the necessary details, including your subscription, resource group, and region for the deployment.
70
70
71
-

71
+

72
72
73
73
Once the submission process is complete, you can view your cloud job in a new window. From there, you can monitor its performance and manage its configurations as needed. You can also open the job in your browser by clicking on the link provided in the OUTPUT panel.
74
74
75
-

75
+

0 commit comments