Skip to content

Commit 08f9976

Browse files
committed
lightbox
1 parent 017e8f6 commit 08f9976

File tree

1 file changed

+17
-17
lines changed

1 file changed

+17
-17
lines changed

articles/stream-analytics/quick-create-visual-studio-code.md

Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ Before you define the Stream Analytics job, you should prepare the data that's l
9090
2. Replace the placeholder in line 15 with the IoT hub device connection string that you saved earlier.
9191
3. Select **Run**. The output should show the sensor data and messages that are being sent to your IoT hub.
9292

93-
![Raspberry Pi Azure IoT Online Simulator with output](./media/quick-create-visual-studio-code/ras-pi-connection-string.png)
93+
:::image type="content" source="./media/quick-create-visual-studio-code/ras-pi-connection-string.png" lightbox="./media/quick-create-visual-studio-code/ras-pi-connection-string.png" alt-text="Screenshot showing the Raspberry Pi Azure IoT Online Simulator with output.":::
9494

9595
## Create blob storage
9696

@@ -139,26 +139,26 @@ Before you define the Stream Analytics job, you should prepare the data that's l
139139
WHERE Temperature > 27
140140
```
141141

142-
:::image type="content" source="./media/quick-create-visual-studio-code/query.png" alt-text="Screenshot showing the transformation query.":::
142+
:::image type="content" source="./media/quick-create-visual-studio-code/query.png" lightbox="./media/quick-create-visual-studio-code/query.png" alt-text="Screenshot showing the transformation query.":::
143143

144144
## Define a live input
145145

146146
1. Right-click the **Inputs** folder in your Stream Analytics project. Then select **ASA: Add Input** from the context menu.
147147

148-
:::image type="content" source="./media/quick-create-visual-studio-code/add-input-from-inputs-folder.png" alt-text="Screenshot showing the ASA: Add input menu in Visual Studio Code.":::
148+
:::image type="content" source="./media/quick-create-visual-studio-code/add-input-from-inputs-folder.png" lightbox="./media/quick-create-visual-studio-code/add-input-from-inputs-folder.png" alt-text="Screenshot showing the ASA: Add input menu in Visual Studio Code.":::
149149

150150
Or select **Ctrl+Shift+P** (or **View** -> **Command palette** menu) to open the command palette and enter **ASA: Add Input**.
151151

152-
:::image type="content" source="./media/quick-create-visual-studio-code/add-input.png" alt-text="Screenshot showing the ASA: Add input in the command palette of Visual Studio Code.":::
152+
:::image type="content" source="./media/quick-create-visual-studio-code/add-input.png" lightbox="./media/quick-create-visual-studio-code/add-input.png" alt-text="Screenshot showing the ASA: Add input in the command palette of Visual Studio Code.":::
153153
2. Choose **IoT Hub** for the input type.
154154

155-
:::image type="content" source="./media/quick-create-visual-studio-code/iot-hub.png" alt-text="Screenshot showing the selection of your IoT hub in VS Code command palette.":::
155+
:::image type="content" source="./media/quick-create-visual-studio-code/iot-hub.png" lightbox="./media/quick-create-visual-studio-code/iot-hub.png" alt-text="Screenshot showing the selection of your IoT hub in VS Code command palette.":::
156156
3. If you added the input from the command palette, choose the Stream Analytics query script that will use the input. It should be automatically populated with the file path to **myASAproj.asaql**.
157157

158-
:::image type="content" source="./media/quick-create-visual-studio-code/asa-script.png" alt-text="Screenshot showing the selection of your Stream Analytics script in VS Code command palette.":::
158+
:::image type="content" source="./media/quick-create-visual-studio-code/asa-script.png" lightbox="./media/quick-create-visual-studio-code/asa-script.png" alt-text="Screenshot showing the selection of your Stream Analytics script in VS Code command palette.":::
159159
4. Choose **Select from your Azure Subscriptions** from the drop-down menu, and then press **ENTER**.
160160

161-
:::image type="content" source="./media/quick-create-visual-studio-code/add-input-select-subscription.png" alt-text="Screenshot showing the selection of your Azure subscription in VS Code command palette.":::
161+
:::image type="content" source="./media/quick-create-visual-studio-code/add-input-select-subscription.png" lightbox="./media/quick-create-visual-studio-code/add-input-select-subscription.png" alt-text="Screenshot showing the selection of your Azure subscription in VS Code command palette.":::
162162
5. Edit the newly generated **IoTHub1.json** file with the following values. Keep default values for fields not mentioned here.
163163

164164
|Setting|Suggested value|Description|
@@ -169,11 +169,11 @@ Before you define the Stream Analytics job, you should prepare the data that's l
169169

170170
You can use the CodeLens feature to help you enter a string, select from a drop-down list, or change the text directly in the file. The following screenshot shows **Select from your Subscriptions** as an example. The credentials are auto-listed and saved in local credential manager.
171171

172-
:::image type="content" source="./media/quick-create-visual-studio-code/configure-input.png" alt-text="Screenshot showing the launch of CodeLens feature in VS Code.":::
172+
:::image type="content" source="./media/quick-create-visual-studio-code/configure-input.png" lightbox="./media/quick-create-visual-studio-code/configure-input.png" alt-text="Screenshot showing the launch of CodeLens feature in VS Code.":::
173173

174174
After you select a subscription, **select an IoT hub** if you have multiple hubs in that subscription.
175175

176-
:::image type="content" source="./media/quick-create-visual-studio-code/select-iot-hub.png" alt-text="Screenshot showing the selection of your IoT hub in VS Code.":::
176+
:::image type="content" source="./media/quick-create-visual-studio-code/select-iot-hub.png" lightbox="./media/quick-create-visual-studio-code/select-iot-hub.png" alt-text="Screenshot showing the selection of your IoT hub in VS Code.":::
177177

178178
> [!IMPORTANT]
179179
> Make sure that the name of the input is **Input** as the query expect it.
@@ -182,7 +182,7 @@ Before you define the Stream Analytics job, you should prepare the data that's l
182182

183183
Select **Preview data** in **IoTHub1.json** from the top line. Some input data will be fetched from the IoT hub and shown in the preview window. This process might take a while.
184184

185-
:::image type="content" source="./media/quick-create-visual-studio-code/preview-live-input.png" alt-text="Screenshot showing the preview of input data in your IoT hub.":::
185+
:::image type="content" source="./media/quick-create-visual-studio-code/preview-live-input.png" lightbox="./media/quick-create-visual-studio-code/preview-live-input.png" alt-text="Screenshot showing the preview of input data in your IoT hub.":::
186186

187187
## Define an output
188188

@@ -199,7 +199,7 @@ Select **Preview data** in **IoTHub1.json** from the top line. Some input data w
199199
|Container|container1|Select the existing container that you created in your storage account.|
200200
|Path Pattern|output|Enter the name of a file path to be created within the container.|
201201

202-
:::image type="content" source="./media/quick-create-visual-studio-code/configure-output.png" alt-text="Screenshot showing the configuration of output for the Stream Analytics job.":::
202+
:::image type="content" source="./media/quick-create-visual-studio-code/configure-output.png" lightbox="./media/quick-create-visual-studio-code/configure-output.png" alt-text="Screenshot showing the configuration of output for the Stream Analytics job.":::
203203

204204
> [!IMPORTANT]
205205
> Make sure that the name of the output is **Output** as the query expect it.
@@ -210,20 +210,20 @@ Script compilation checks syntax and generates the Azure Resource Manager templa
210210

211211
- Select the script from the workspace and then compile from the command palette.
212212

213-
:::image type="content" source="./media/quick-create-visual-studio-code/compile-script1.png" alt-text="Screenshot showing the compilation of script option from the command palette.":::
213+
:::image type="content" source="./media/quick-create-visual-studio-code/compile-script1.png" lightbox="./media/quick-create-visual-studio-code/compile-script1.png" alt-text="Screenshot showing the compilation of script option from the command palette.":::
214214
- Right-click the script and select **ASA: Compile Script**.
215215

216-
:::image type="content" source="./media/quick-create-visual-studio-code/compile-script2.png" alt-text="Screenshot showing the compilation of script option from the Stream Analytics explorer in VS Code.":::
216+
:::image type="content" source="./media/quick-create-visual-studio-code/compile-script2.png" lightbox="./media/quick-create-visual-studio-code/compile-script2.png" alt-text="Screenshot showing the compilation of script option from the Stream Analytics explorer in VS Code.":::
217217

218218
After compilation, you can see results in the **Output** window. You can find the two generated Azure Resource Manager templates in the **Deploy** subfolder in your project folder. These two files are used for automatic deployment.
219219

220-
:::image type="content" source="./media/quick-create-visual-studio-code/deployment-templates.png" alt-text="Screenshot showing the generated deployment templates in the project folder.":::
220+
:::image type="content" source="./media/quick-create-visual-studio-code/deployment-templates.png" lightbox="./media/quick-create-visual-studio-code/deployment-templates.png" alt-text="Screenshot showing the generated deployment templates in the project folder.":::
221221

222222
## Submit a Stream Analytics job to Azure
223223

224224
1. In the script editor window of your query script, select **Submit to Azure**.
225225

226-
:::image type="content" source="./media/quick-create-visual-studio-code/submit-job.png" alt-text="Screenshot showing the submit job button to submit the Stream Analytics job to Azure.":::
226+
:::image type="content" source="./media/quick-create-visual-studio-code/submit-job.png" lightbox="./media/quick-create-visual-studio-code/submit-job.png" alt-text="Screenshot showing the submit job button to submit the Stream Analytics job to Azure.":::
227227
2. Select your subscription from the pop-up list.
228228
3. Choose **Select a job**. Then choose **Create New Job**.
229229
4. Enter your job name, **myASAjob**. Then follow the instructions to choose the resource group and location.
@@ -235,11 +235,11 @@ After compilation, you can see results in the **Output** window. You can find th
235235
1. Open **Stream Analytics Explorer** in Visual Studio Code and find your job, **myASAJob**.
236236
2. Select **Start** from the **Cloud view** page (OR) right-click the job name in Stream Analytics explorer, and select **Start** from the context menu.
237237

238-
:::image type="content" source="./media/quick-create-visual-studio-code/start-asa-job-vs-code.png" alt-text="Screenshot showing the Start job button in the Cloud view page.":::
238+
:::image type="content" source="./media/quick-create-visual-studio-code/start-asa-job-vs-code.png" lightbox="./media/quick-create-visual-studio-code/start-asa-job-vs-code.png" alt-text="Screenshot showing the Start job button in the Cloud view page.":::
239239
4. Note that the job status has changed to **Running**. Right-click the job name and select **Open Job View in Portal** to see the input and output event metrics. This action might take a few minutes.
240240
5. To view the results, open the blob storage in the Visual Studio Code extension or in the Azure portal.
241241

242-
:::image type="content" source="./media/quick-create-visual-studio-code/output-files.png" alt-text="Screenshot showing the output file in the Blob container.":::
242+
:::image type="content" source="./media/quick-create-visual-studio-code/output-files.png" lightbox="./media/quick-create-visual-studio-code/output-files.png" alt-text="Screenshot showing the output file in the Blob container.":::
243243

244244
Download and open the file to see output.
245245

0 commit comments

Comments
 (0)