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: learn-pr/azure/test-bicep-code-using-azure-pipelines/includes/2-understand-pipeline-stages.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,4 +1,4 @@
1
-
Pipelines enable you to automate the steps in your deployment process. Your process might include several logical groups of jobs that you want to run. In this unit, you'll learn about pipeline stages and how you to them to add quality control processes to your Bicep deployments.
1
+
Pipelines enable you to automate the steps in your deployment process. Your process might include several logical groups of jobs that you want to run. In this unit, you'll learn about pipeline stages and how to use them to add quality control processes to your Bicep deployments.
Copy file name to clipboardExpand all lines: learn-pr/azure/test-bicep-code-using-azure-pipelines/includes/3-lint-validate-bicep-code.md
+3-3Lines changed: 3 additions & 3 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -6,11 +6,11 @@ A valid Bicep file is one that doesn't contain any syntax errors. Also, the defi
6
6
7
7
Some of the checks are performed on your Bicep file in isolation, like the checks for syntax errors, for valid Azure resource definitions, and for code quality. These steps are part of a process called _linting_. To check for other problems, you need to request that the Azure Resource Manager service validates your template and takes your Azure environment into account.
8
8
9
-
A valid Bicep template has a greater chance of successful deployment. You'll get feedback without deploying your Bicep template. Validation is a good practice because if you deploy a Bicep file that's not valid, Azure might deploy or change only a subset of the resources described in your template. The result might be that the state of your environment is inconsistent and might not behave the way you expect.
9
+
A valid Bicep template has a better chance of successful deployment. You'll get feedback without deploying your Bicep template. Validation is a good practice because if you deploy a Bicep file that's not valid, Azure might deploy or change only a subset of the resources described in your template. The result might be that the state of your environment is inconsistent and might not behave the way you expect.
10
10
11
11
## Build and lint Bicep code
12
12
13
-
When you deploy a Bicep file, the Bicep tooling first runs some basic validation steps. These steps are the same ones that run when you modify your file by using Visual Studio Code. They check that you used Bicep's language keywords correctly and that you defined your Azure resources according to the requirements for each resource type.
13
+
When you deploy a Bicep file, the Bicep tooling first runs some basic validation steps. These steps are the same ones that run when you modify your file by using Visual Studio Code. They check that you used Bicep language keywords correctly and that you defined your Azure resources according to the requirements for each resource type.
14
14
15
15
In addition, Bicep runs a _linter_ over your files. Linting is the process of checking your code against a set of recommendations. The Bicep linter reviews your file and verifies that you followed best practices for maintainability, correctness, flexibility, and extensibility.
16
16
@@ -74,7 +74,7 @@ Preflight validation requires communication with Azure, but it doesn't actually
74
74
75
75
:::image type="content" source="../media/3-stages-validate.png" alt-text="Diagram that shows a pipeline with lint and validate stages, each containing a single job. The validate stage communicates with Azure." border="false":::
76
76
77
-
You can use the `AzureResourceManagerTemplateDeployment` task to submit a Bicep file for preflight validation and configure the `deploymentMode` to `Validation`:
77
+
You can use the `AzureResourceManagerTemplateDeployment` task to submit a Bicep file for preflight validation. Configure the `deploymentMode` to `Validation`:
Copy file name to clipboardExpand all lines: learn-pr/azure/test-bicep-code-using-azure-pipelines/includes/4-exercise-set-up-environment.md
+4-2Lines changed: 4 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -25,7 +25,9 @@ Run a template that sets up your Azure DevOps organization.
25
25
26
26
1.[Get and run the ADOGenerator project](https://github.com/microsoft/AzDevOpsDemoGenerator/blob/main/docs/RunApplication.md) in Visual Studio or the IDE of your choice.
27
27
28
-
1. When prompted to **Enter the template number from the list of templates**, enter **41** for **Test your Bicep code by using Azure Pipelines**, and then select **Enter**.
28
+
1. When you're asked whether you want to create a new template or use the demo generator, enter **1** and then select **Enter**.
29
+
30
+
1. When prompted to **Enter the template number from the list of templates above**, enter **41** for **Test your Bicep code by using Azure Pipelines**, and then select **Enter**.
29
31
30
32
1. Choose your authentication method. You can [set up and use a Personal Access Token (PAT)](/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate#create-a-pat) or use device login.
31
33
@@ -44,7 +46,7 @@ Run a template that sets up your Azure DevOps organization.
44
46
45
47
If you haven't already, create a fork of the **mslearn-test-bicep-code-using-github-actions** repository.
46
48
47
-
1. On GitHub, go to the [mslearn-tailspin-spacegame-web](https://github.com/MicrosoftDocs/mslearn-test-bicep-code-using-github-actions) repository.
49
+
1. On GitHub, go to the [mslearn-test-bicep-code-using-github-actions](https://github.com/MicrosoftDocs/mslearn-test-bicep-code-using-github-actions) repository.
48
50
49
51
1. Select **Fork** at the top-right of the screen.
0 commit comments