Skip to content

Commit 84242d8

Browse files
committed
updates1
1 parent 015a8b4 commit 84242d8

17 files changed

+342
-342
lines changed
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.azure.deploy-azure-resources-bicep.introduction
3-
title: Introduction
4-
metadata:
5-
unitType: introduction
6-
title: Introduction
7-
description: Learn how to create Bicep templates and create reusable infrastructure as code.
8-
ms.date: 01/31/2025
9-
author: mumian
10-
ms.author: jgao
11-
ms.topic: unit
12-
ms.custom:
13-
- devx-track-bicep
14-
durationInMinutes: 2
15-
content: |
16-
[!include[](includes/1-introduction.md)]
17-
1+
### YamlMime:ModuleUnit
2+
uid: learn.azure.deploy-azure-resources-bicep.introduction
3+
title: Introduction
4+
metadata:
5+
unitType: introduction
6+
title: Introduction
7+
description: Learn how to create Bicep files and create reusable infrastructure as code.
8+
ms.date: 01/31/2025
9+
author: mumian
10+
ms.author: jgao
11+
ms.topic: unit
12+
ms.custom:
13+
- devx-track-bicep
14+
durationInMinutes: 2
15+
content: |
16+
[!include[](includes/1-introduction.md)]
17+
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.azure.deploy-azure-resources-bicep.define-resources
3-
title: Define resources
4-
metadata:
5-
unitType: learning-content
6-
title: Define Azure resources in a Bicep template
7-
description: Learn how to define resources in Bicep and understand how Bicep treats dependencies between resources.
8-
ms.date: 01/31/2025
9-
author: mumian
10-
ms.author: jgao
11-
ms.topic: unit
12-
ms.custom:
13-
- devx-track-bicep
14-
durationInMinutes: 5
15-
content: |
16-
[!include[](includes/3-define-resources.md)]
17-
1+
### YamlMime:ModuleUnit
2+
uid: learn.azure.deploy-azure-resources-bicep.define-resources
3+
title: Define resources
4+
metadata:
5+
unitType: learning-content
6+
title: Define Azure resources in a Bicep file
7+
description: Learn how to define resources in Bicep and understand how Bicep treats dependencies between resources.
8+
ms.date: 01/31/2025
9+
author: mumian
10+
ms.author: jgao
11+
ms.topic: unit
12+
ms.custom:
13+
- devx-track-bicep
14+
durationInMinutes: 5
15+
content: |
16+
[!include[](includes/3-define-resources.md)]
17+
Lines changed: 18 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,18 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.azure.deploy-azure-resources-bicep.define-resources-bicep-template
3-
title: Exercise - Define resources in a Bicep template
4-
sandbox: true
5-
metadata:
6-
unitType: exercise
7-
title: Exercise - Define resources in a Bicep template
8-
description: Learn how to define resources in Bicep and understand how Bicep treats dependencies between resources.
9-
ms.date: 01/31/2025
10-
author: mumian
11-
ms.author: jgao
12-
ms.topic: unit
13-
ms.custom: devx-track-bicep
14-
zone_pivot_groups: azure-shell-interface
15-
durationInMinutes: 12
16-
content: |
17-
[!include[](includes/4-exercise-define-resources-bicep-template.md)]
18-
1+
### YamlMime:ModuleUnit
2+
uid: learn.azure.deploy-azure-resources-bicep.define-resources-bicep-file
3+
title: Exercise - Define resources in a Bicep file
4+
sandbox: true
5+
metadata:
6+
unitType: exercise
7+
title: Exercise - Define resources in a Bicep file
8+
description: Learn how to define resources in Bicep and understand how Bicep treats dependencies between resources.
9+
ms.date: 01/31/2025
10+
author: mumian
11+
ms.author: jgao
12+
ms.topic: unit
13+
ms.custom: devx-track-bicep
14+
zone_pivot_groups: azure-shell-interface
15+
durationInMinutes: 12
16+
content: |
17+
[!include[](includes/4-exercise-define-resources-bicep-file.md)]
18+
Lines changed: 17 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,17 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.azure.deploy-azure-resources-bicep.add-flexibility-parameters-variables
3-
title: Add flexibility by using parameters and variables
4-
metadata:
5-
unitType: learning-content
6-
title: Add flexibility by using parameters and variables
7-
description: Learn how to build reusable templates by using parameters to accept input, and variables to store and reuse values within the template.
8-
ms.date: 01/31/2025
9-
author: mumian
10-
ms.author: jgao
11-
ms.topic: unit
12-
ms.custom:
13-
- devx-track-bicep
14-
durationInMinutes: 10
15-
content: |
16-
[!include[](includes/5-add-flexibility-parameters-variables.md)]
17-
1+
### YamlMime:ModuleUnit
2+
uid: learn.azure.deploy-azure-resources-bicep.add-flexibility-parameters-variables
3+
title: Add flexibility by using parameters and variables
4+
metadata:
5+
unitType: learning-content
6+
title: Add flexibility by using parameters and variables
7+
description: Learn how to build reusable files by using parameters to accept input, and variables to store and reuse values within the file.
8+
ms.date: 01/31/2025
9+
author: mumian
10+
ms.author: jgao
11+
ms.topic: unit
12+
ms.custom:
13+
- devx-track-bicep
14+
durationInMinutes: 10
15+
content: |
16+
[!include[](includes/5-add-flexibility-parameters-variables.md)]
17+
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.azure.deploy-azure-resources-bicep.add-parameters-variables-bicep-template
3-
title: Exercise - Add parameters and variables to your Bicep template
4-
sandbox: true
5-
metadata:
6-
unitType: exercise
7-
title: Exercise - Add parameters and variables to your Bicep template
8-
description: Learn how to build reusable templates by using parameters to accept input, and variables to store and reuse values within the template.
9-
ms.date: 01/31/2025
10-
author: mumian
11-
ms.author: jgao
12-
ms.topic: unit
13-
ms.custom:
14-
- devx-track-bicep
15-
zone_pivot_groups: azure-shell-interface
16-
durationInMinutes: 7
17-
content: |
18-
[!include[](includes/6-exercise-add-parameters-variables-bicep-template.md)]
19-
1+
### YamlMime:ModuleUnit
2+
uid: learn.azure.deploy-azure-resources-bicep.add-parameters-variables-bicep-file
3+
title: Exercise - Add parameters and variables to your Bicep file
4+
sandbox: true
5+
metadata:
6+
unitType: exercise
7+
title: Exercise - Add parameters and variables to your Bicep file
8+
description: Learn how to build reusable files by using parameters to accept input, and variables to store and reuse values within the file.
9+
ms.date: 01/31/2025
10+
author: mumian
11+
ms.author: jgao
12+
ms.topic: unit
13+
ms.custom:
14+
- devx-track-bicep
15+
zone_pivot_groups: azure-shell-interface
16+
durationInMinutes: 7
17+
content: |
18+
[!include[](includes/6-exercise-add-parameters-variables-bicep-file.md)]
19+
Lines changed: 19 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,19 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.azure.deploy-azure-resources-bicep.refactor-template-modules
3-
title: Exercise - Refactor your template to use modules
4-
sandbox: true
5-
metadata:
6-
unitType: exercise
7-
title: Exercise - Refactor your template to use modules
8-
description: Learn how to create self-contained, reusable modules for your Bicep code.
9-
ms.date: 01/31/2025
10-
author: mumian
11-
ms.author: jgao
12-
ms.topic: unit
13-
ms.custom:
14-
- devx-track-bicep
15-
zone_pivot_groups: azure-shell-interface
16-
durationInMinutes: 8
17-
content: |
18-
[!include[](includes/8-exercise-refactor-template-modules.md)]
19-
1+
### YamlMime:ModuleUnit
2+
uid: learn.azure.deploy-azure-resources-bicep.refactor-file-modules
3+
title: Exercise - Refactor your file to use modules
4+
sandbox: true
5+
metadata:
6+
unitType: exercise
7+
title: Exercise - Refactor your file to use modules
8+
description: Learn how to create self-contained, reusable modules for your Bicep code.
9+
ms.date: 01/31/2025
10+
author: mumian
11+
ms.author: jgao
12+
ms.topic: unit
13+
ms.custom:
14+
- devx-track-bicep
15+
zone_pivot_groups: azure-shell-interface
16+
durationInMinutes: 8
17+
content: |
18+
[!include[](includes/8-exercise-refactor-file-modules.md)]
19+
Lines changed: 55 additions & 55 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.azure.deploy-azure-resources-bicep.knowledge-check
3-
title: Module assessment
4-
metadata:
5-
unitType: knowledge_check
6-
title: Module assessment
7-
description: "Knowledge check"
8-
ms.date: 01/31/2025
9-
author: mumian
10-
ms.author: jgao
11-
ms.topic: unit
12-
ms.custom:
13-
- devx-track-bicep
14-
durationInMinutes: 3
15-
content: |
16-
[!include[](includes/9-knowledge-check.md)]
17-
quiz:
18-
questions:
19-
- content: What's the best way for the team to create a template that deploys to both test and production environments?
20-
choices:
21-
- content: Create a template that deploys all of the resources for the manufacturing application. Add template parameters for the values that might change between environments.
22-
isCorrect: true
23-
explanation: Correct. Template parameters are a great way to manage multiple environments. You can specify different values for the parameters when you deploy the template into the test and production environments.
24-
- content: Create a module that deploys all of the resources for the manufacturing application. Create separate Bicep templates for each environment, and add the shared module to each environment's template.
25-
isCorrect: false
26-
explanation: Incorrect. Modules can be a great way to reuse your Bicep code, but when you're deploying multiple environments, there's usually a simpler way to keep track of the different configurations for each deployment.
27-
- content: Create a template that deploys all of the resources required for the manufacturing application. Add variables for the values that might change between environments.
28-
isCorrect: false
29-
explanation: Incorrect. Variables have the same value, so you don't usually need to consider them when you deploy multiple environments.
30-
- content: |
31-
The template that the team has developed includes this line:<br />
32-
`param siteName string = 'mysite-${uniqueString(resourceGroup().id)}'`<br />
33-
Which of these statements is true?
34-
choices:
35-
- content: Whoever deploys the template must specify a value for the `siteName` parameter.
36-
isCorrect: false
37-
explanation: Incorrect. The `siteName` parameter has a _default value_ specified, which means that deployments don't have to specify the parameter value. If they don't, the parameter's default value is used.
38-
- content: The `siteName` parameter will have a different default value every time the template is deployed.
39-
isCorrect: false
40-
explanation: Incorrect. The parameter's default value is set through the `uniqueString()` function, which has been seeded with the resource group's ID. Therefore, the value that the `uniqueString()` function returns is the same whenever the template is deployed in the same resource group in the same Azure subscription.
41-
- content: When the template is deployed to the same resource group in the same subscription repeatedly, the `siteName` parameter's default value will be the same each time.
42-
isCorrect: true
43-
explanation: Correct. The `siteName` parameter's default value uses string interpolation to combine the string prefix `mysite-` with a value from the `uniqueString()` function, which is seeded with the resource group ID. The value that the `uniqueString()` function returns is the same whenever the template is deployed in the same resource group in the same Azure subscription.
44-
- content: The Bicep template that the IT department wrote has two modules in it. Which of these statements is true?
45-
choices:
46-
- content: If an output is added to one of the modules, it's automatically published as an output from the parent template too.
47-
isCorrect: false
48-
explanation: Incorrect. Outputs that Bicep modules define are available to the parent template, but they aren't automatically available to the template deployer. However, you can define an output in your template and pass the value through.
49-
- content: If an output is added to one of the modules, it will automatically be available for the parent template to use.
50-
isCorrect: true
51-
explanation: Correct. The outputs from modules are automatically made available for the parent template to use, such as in defining input parameter values for other modules or in setting the properties on resources.
52-
- content: Modules can't have outputs; only templates can.
53-
isCorrect: false
54-
explanation: Incorrect. Modules can define outputs. The outputs from modules are automatically made available to the parent template.
55-
1+
### YamlMime:ModuleUnit
2+
uid: learn.azure.deploy-azure-resources-bicep.knowledge-check
3+
title: Module assessment
4+
metadata:
5+
unitType: knowledge_check
6+
title: Module assessment
7+
description: "Knowledge check"
8+
ms.date: 01/31/2025
9+
author: mumian
10+
ms.author: jgao
11+
ms.topic: unit
12+
ms.custom:
13+
- devx-track-bicep
14+
durationInMinutes: 3
15+
content: |
16+
[!include[](includes/9-knowledge-check.md)]
17+
quiz:
18+
questions:
19+
- content: What's the best way for the team to create a file that deploys to both test and production environments?
20+
choices:
21+
- content: Create a file that deploys all of the resources for the manufacturing application. Add file parameters for the values that might change between environments.
22+
isCorrect: true
23+
explanation: Correct. File parameters are a great way to manage multiple environments. You can specify different values for the parameters when you deploy the file into the test and production environments.
24+
- content: Create a module that deploys all of the resources for the manufacturing application. Create separate Bicep files for each environment, and add the shared module to each environment's file.
25+
isCorrect: false
26+
explanation: Incorrect. Modules can be a great way to reuse your Bicep code, but when you're deploying multiple environments, there's usually a simpler way to keep track of the different configurations for each deployment.
27+
- content: Create a file that deploys all of the resources required for the manufacturing application. Add variables for the values that might change between environments.
28+
isCorrect: false
29+
explanation: Incorrect. Variables have the same value, so you don't usually need to consider them when you deploy multiple environments.
30+
- content: |
31+
The file that the team has developed includes this line:<br />
32+
`param siteName string = 'mysite-${uniqueString(resourceGroup().id)}'`<br />
33+
Which of these statements is true?
34+
choices:
35+
- content: Whoever deploys the file must specify a value for the `siteName` parameter.
36+
isCorrect: false
37+
explanation: Incorrect. The `siteName` parameter has a _default value_ specified, which means that deployments don't have to specify the parameter value. If they don't, the parameter's default value is used.
38+
- content: The `siteName` parameter will have a different default value every time the file is deployed.
39+
isCorrect: false
40+
explanation: Incorrect. The parameter's default value is set through the `uniqueString()` function, which has been seeded with the resource group's ID. Therefore, the value that the `uniqueString()` function returns is the same whenever the file is deployed in the same resource group in the same Azure subscription.
41+
- content: When the file is deployed to the same resource group in the same subscription repeatedly, the `siteName` parameter's default value will be the same each time.
42+
isCorrect: true
43+
explanation: Correct. The `siteName` parameter's default value uses string interpolation to combine the string prefix `mysite-` with a value from the `uniqueString()` function, which is seeded with the resource group ID. The value that the `uniqueString()` function returns is the same whenever the file is deployed in the same resource group in the same Azure subscription.
44+
- content: The Bicep file that the IT department wrote has two modules in it. Which of these statements is true?
45+
choices:
46+
- content: If an output is added to one of the modules, it's automatically published as an output from the parent file too.
47+
isCorrect: false
48+
explanation: Incorrect. Outputs that Bicep modules define are available to the parent file, but they aren't automatically available to the file deployer. However, you can define an output in your file and pass the value through.
49+
- content: If an output is added to one of the modules, it will automatically be available for the parent file to use.
50+
isCorrect: true
51+
explanation: Correct. The outputs from modules are automatically made available for the parent file to use, such as in defining input parameter values for other modules or in setting the properties on resources.
52+
- content: Modules can't have outputs; only files can.
53+
isCorrect: false
54+
explanation: Incorrect. Modules can define outputs. The outputs from modules are automatically made available to the parent file.
55+

learn-pr/azure/build-first-bicep-template/includes/1-introduction.md

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -8,18 +8,18 @@ You'll host the website in Azure using Azure App Service. You'll incorporate a s
88

99
:::image type="content" source="../media/1-architecture-diagram.png" alt-text="Architecture diagram that shows a resource group containing an App Service plan, App Service app, and storage account." border="false":::
1010

11-
You decide to build the resources using infrastructure as code (IaC) techniques so you can reuse the template for future product launches.
11+
You decide to build the resources using infrastructure as code (IaC) techniques so you can reuse the file for future product launches.
1212

1313
## What will we learn?
1414

15-
In this module, you'll create a reusable Bicep template to deploy a set of Azure resources for new product launches. You'll use many elements of the Bicep language, including:
15+
In this module, you'll create a reusable Bicep file to deploy a set of Azure resources for new product launches. You'll use many elements of the Bicep language, including:
1616

1717
- Resource definitions to deploy your Azure resources from your Bicep code.
18-
- Parameters to make your template reusable.
19-
- Variables and expressions to make it easier to write and deploy your template.
20-
- Modules to help structure your template into multiple files.
21-
- Outputs to send data from your template and modules back to whoever or whatever is deploying your infrastructure.
18+
- Parameters to make your file reusable.
19+
- Variables and expressions to make it easier to write and deploy your file.
20+
- Modules to help structure your file into multiple files.
21+
- Outputs to send data from your file and modules back to whoever or whatever is deploying your infrastructure.
2222

2323
## What is the main goal?
2424

25-
By the end of this module, you'll be able to create Bicep templates that define your Azure resources. You'll be able to use parameters, variables, and expressions to make your templates reusable. You'll also be able to use modules and outputs to organize your templates into separate files.
25+
By the end of this module, you'll be able to create Bicep files that define your Azure resources. You'll be able to use parameters, variables, and expressions to make your files reusable. You'll also be able to use modules and outputs to organize your files into separate files.

0 commit comments

Comments
 (0)