| title | Export and manage Azure Stream Analytics jobs in Visual Studio Code |
|---|---|
| description | This article shows you how to export and manage an Azure Stream Analytics job with the Azure Stream Analytics extension for Visual Studio Code. |
| ms.service | azure-stream-analytics |
| author | alexlzx |
| ms.author | zhenxilin |
| ms.date | 05/24/2023 |
| ms.topic | how-to |
| ms.custom | sfi-image-nochange |
The Azure Stream Analytics (ASA) extension for Visual Studio Code gives you a seamless experience for managing Stream Analytics jobs in the cloud. It can be used across Windows, Mac and Linux platforms. With the ASA extension, it allows you to:
- Create, start, and stop a cloud job in Azure
- Export existing jobs to a local machine
- List jobs and view job entities
- View and debug job using Job Diagram and Monitor
- Open your VS Code and select Azure icon on the activity bar. If you haven't installed the ASA extension, follow this guide to install.
- Select STREAM ANALYTICS in the explorer to locate the job you want to export.
You can use the job view to interact with Azure Stream Analytics jobs from Visual Studio.
-
Select the Azure icon on Visual Studio Code Activity Bar and then expand Stream Analytics node. Your jobs should appear under your subscriptions.
-
Expand your job node, you can open and view the job query, configuration, inputs, outputs and functions.
-
Right-click your job node, and choose the Open Job View in Portal node to open the job view in the Azure portal.
You can use job monitor in Visual Studio Code to view and troubleshoot your Azure Stream Analytics jobs.
-
Select Job Monitor. Your Job Monitor should appear, and job diagram should be loaded automatically.

-
You can view your job diagram and select Job Summary to view properties and information of your job.

-
You can select Test Connection button to test connection to your input and output.

-
You can also select Locate Script button to view your query.

-
You can interact with it and analyze your job with key metrics showing in chart. You can choose to view job-level metrics or nodes level metrics. And you can also decide which metrics you want them to show in the chart.

You can view your job’s diagnostic logs and activity logs for troubleshooting.





