Skip to content

Commit 704fc7f

Browse files
authored
Merge pull request #239486 from alexlzx/alex-2305
updates articles for Azure Stream Analtics
2 parents 8074e32 + 6732e36 commit 704fc7f

21 files changed

+157
-103
lines changed

articles/stream-analytics/TOC.yml

Lines changed: 21 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -350,11 +350,31 @@
350350
href: set-up-cicd-pipeline.md
351351
- name: Set up a pipeline using GitHub Actions
352352
href: cicd-github-actions.md
353+
- name: Deploy jobs with Bicep
354+
href: cicd-deploy-with-bicep.md
353355
- name: Configure autoscale settings
354356
href: cicd-autoscale.md
357+
- name: Visual Studio Code
358+
items:
359+
- name: Export and manage jobs
360+
href: visual-studio-code-explore-jobs.md
361+
- name: Test locally with live data
362+
href: visual-studio-code-local-run-live-input.md
363+
- name: Complete code with IntelliSense
364+
href: vs-code-intellisense.md
365+
- name: Run jobs locally with VS Code
366+
href: visual-studio-code-local-run-all.md
367+
- name: Test locally with sample data
368+
href: visual-studio-code-local-run.md
369+
- name: Debug queries using job diagram
370+
href: debug-locally-using-job-diagram-vs-code.md
371+
- name: Create and debug .NET custom deserializer
372+
href: visual-studio-code-custom-deserializer.md
373+
- name: JobConfig.json fields
374+
href: job-config-json.md
355375
- name: Visual Studio
356376
items:
357-
- name: Migrate Stream Analytics projects to VS Code
377+
- name: Migrate to VS Code
358378
href: migrate-to-vscode.md
359379
- name: Quickstart
360380
href: stream-analytics-quick-create-vs.md
@@ -376,24 +396,6 @@
376396
href: stream-analytics-edge-csharp-udf.md
377397
- name: Set up CI/CD pipeline
378398
href: stream-analytics-tools-for-visual-studio-cicd.md
379-
- name: Visual Studio Code
380-
items:
381-
- name: Complete code with IntelliSense
382-
href: vs-code-intellisense.md
383-
- name: Run jobs locally with VS Code
384-
href: visual-studio-code-local-run-all.md
385-
- name: Test locally with sample data
386-
href: visual-studio-code-local-run.md
387-
- name: Test locally with live data
388-
href: visual-studio-code-local-run-live-input.md
389-
- name: Debug queries using job diagram
390-
href: debug-locally-using-job-diagram-vs-code.md
391-
- name: Explore jobs
392-
href: visual-studio-code-explore-jobs.md
393-
- name: Create and debug .NET custom deserializer
394-
href: visual-studio-code-custom-deserializer.md
395-
- name: JobConfig.json fields
396-
href: job-config-json.md
397399
- name: Troubleshoot
398400
items:
399401
- name: Input
Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
---
2+
title: Deploy Azure Stream Analytics jobs using Bicep files
3+
description: This article shows you how to generate and deploy Azure Stream Analytics jobs using Bicep files.
4+
ms.service: stream-analytics
5+
author: alexlzx
6+
ms.author: zhenxilin
7+
ms.date: 05/24/2023
8+
ms.topic: how-to
9+
---
10+
11+
# Deploy Stream Analytics jobs with Bicep files
12+
13+
The Azure Stream Analytics (ASA) CI/CD npm package allows you to build, test, and deploy your Stream Analytics projects in your CI/CD pipeline using Bicep files. This article walks you through how to generate bicep files and deploy your ASA jobs.
14+
15+
Follow this [guide](quick-create-visual-studio-code.md) to create a new Stream Analytics project using Visual Studio Code or export an existing one from the Azure portal.
16+
17+
## Installation
18+
```powershell
19+
npm install -g azure-streamanalytics-cicd
20+
```
21+
22+
## Build project with Bicep
23+
```powershell
24+
# Generate Bicep template
25+
azure-streamanalytics-cicd build --v2 --project <projectFullPath> [--outputPath <outputPath>] --type Bicep
26+
27+
# Example:
28+
azure-streamanalytics-cicd build --v2 --project ./asaproj.json --outputPath ./Deploy --type Bicep
29+
```
30+
31+
The **build** command does a keyword syntax check and generates Bicep files. If the project is built successfully, you see two files created under the output folder:
32+
* **Bicep template file**: [ProjectName].JobTemplate.bicep
33+
* **Bicep parameter file**: [ProjectName].JobTemplate.bicep.parameters.json
34+
35+
The default values for **parameters.json** file come from your project settings. If you want to deploy to another environment, replace the values accordingly.
36+
37+
The default values for all credentials are null. You're required to set the values before you deploy to Azure.
38+
39+
## Deploy to Azure
40+
41+
```powershell
42+
az login
43+
44+
az account set --subscription "xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx"
45+
46+
az deployment group create --name demodeployment --resource-group {resource-group-name} --template-file .\DeployV2\{project-name}.JobTemplate.bicep --parameters .\DeployV2\{project-name}.JobTemplate.bicep.parameters.json
47+
```
48+
49+
## Next steps
50+
51+
* [Azure Stream Analytics CI/CD tool](cicd-overview.md)
52+
* [Automate builds, tests, and deployments of an Azure Stream Analytics job](cicd-tools.md)
53+
* [Set up CI/CD pipeline for Stream Analytics job using Azure Pipelines](set-up-cicd-pipeline.md)
54+

articles/stream-analytics/cicd-overview.md

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,25 @@
11
---
2-
title: Continuous integration and deployment for Azure Stream Analytics
3-
description: This article gives an overview of a continuous integration and deployment (CI/CD) pipeline for Azure Stream Analytics.
2+
title: Continuous integration and continuous deployment of Azure Stream Analytics jobs
3+
description: This article gives an overview of setting up a continuous integration and deployment (CI/CD) pipeline for Azure Stream Analytics jobs.
44
services: stream-analytics
55
author: alexlzx
66
ms.author: zhenxilin
77
ms.service: stream-analytics
88
ms.topic: how-to
9-
ms.date: 12/27/2022
9+
ms.date: 05/24/2023
1010
---
1111

12-
# Continuous integration and deployment (CI/CD) for Azure Stream Analytics
12+
# Continuous integration and continuous deployment (CI/CD) of Stream Analytics jobs
1313

14-
You can build and deploy your Azure Stream Analytics (ASA) job continuously using a source control integration. Source control integration creates a workflow in which updating code would trigger a resource deployment to Azure. This article outlines the basic steps for creating a continuous integration and continuous delivery (CI/CD) pipeline.
15-
16-
If you're new to Azure Stream Analytics, get started with the [Azure Stream Analytics quickstart](stream-analytics-quick-create-portal.md).
14+
You can build, test and deploy your Azure Stream Analytics (ASA) job using a source control integration. Source control integration creates a workflow in which updating code would trigger a resource deployment to Azure. This article outlines the basic steps for creating a continuous integration and continuous delivery (CI/CD) pipeline.
1715

1816
## Create a CI/CD pipeline
1917

2018
Follow the steps to create a CI/CD pipeline for your Stream Analytics project:
2119

22-
1. Create a Stream Analytics project using VSCode.
23-
24-
You can either create a new project or export an existing job to your computer using the ASA Tools extension for Visual Studio Code. Check out these two docs for more information:
25-
* [Quickstart: Create a Stream Analytics job using VSCode](./quick-create-visual-studio-code.md)
26-
* [Export an existing job](visual-studio-code-explore-jobs.md#export-a-job-to-a-local-project)
20+
1. Create a Stream Analytics project using VS Code. You can either create a new project or export an existing job to your local machine using the ASA Tools extension for Visual Studio Code.
21+
* [Quickstart: Create a Stream Analytics job using VS Code](./quick-create-visual-studio-code.md)
22+
* [Export an existing job](visual-studio-code-explore-jobs.md)
2723

2824
2. Commit your Stream Analytics project to your source control system, like a Git repository.
2925

39.8 KB
Loading
165 KB
Loading
51.1 KB
Loading
94.3 KB
Loading
91.9 KB
Loading
94.7 KB
Loading
28.8 KB
Loading

0 commit comments

Comments
 (0)