Skip to content

Commit 1df5216

Browse files
Merge pull request #50664 from v-albemi/deploy-with-bicep
1055060: Deploy child and extension resources by using Bicep
2 parents f773b6c + bfe556f commit 1df5216

25 files changed

+373
-374
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.child-extension-bicep-templates.introduction
3-
title: Introduction
4-
metadata:
5-
unitType: introduction
6-
title: Introduction
7-
description: Learn how to deploy child and extension resources, and refer to existing resources, within your Bicep 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.child-extension-bicep-templates.introduction
3+
title: Introduction
4+
metadata:
5+
unitType: introduction
6+
title: Introduction
7+
description: Learn how to deploy child and extension resources, and refer to existing resources, in your Bicep code.
8+
ms.date: 05/27/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.child-extension-bicep-templates.resource-types
3-
title: Understand Azure resources
4-
metadata:
5-
unitType: learning-content
6-
title: Understand Azure resources
7-
description: Learn about Azure resource types and resource IDs.
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/2-understand-azure-resources.md)]
17-
1+
### YamlMime:ModuleUnit
2+
uid: learn.azure.child-extension-bicep-templates.resource-types
3+
title: Understand Azure resources
4+
metadata:
5+
unitType: learning-content
6+
title: Understand Azure resources
7+
description: Learn about Azure resource types and resource IDs.
8+
ms.date: 05/27/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/2-understand-azure-resources.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.child-extension-bicep-templates.define-child-resources
3-
title: Define child resources
4-
metadata:
5-
unitType: learning-content
6-
title: Define child resources
7-
description: Learn how to create child resources in your Bicep 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: 5
15-
content: |
16-
[!include[](includes/3-define-child-resources.md)]
17-
1+
### YamlMime:ModuleUnit
2+
uid: learn.azure.child-extension-bicep-templates.define-child-resources
3+
title: Define child resources
4+
metadata:
5+
unitType: learning-content
6+
title: Define child resources
7+
description: Learn how to create child resources in your Bicep template.
8+
ms.date: 05/27/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-child-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.child-extension-bicep-templates.exercise-define-child-resources
3-
title: Exercise - Define child resources
4-
sandbox: true
5-
metadata:
6-
unitType: exercise
7-
title: Exercise - Define child resources
8-
description: Learn how to create child resources in your Bicep template.
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: 10
16-
content: |
17-
[!include[](includes/4-exercise-define-child-resources.md)]
18-
1+
### YamlMime:ModuleUnit
2+
uid: learn.azure.child-extension-bicep-templates.exercise-define-child-resources
3+
title: Exercise - Define child resources
4+
sandbox: true
5+
metadata:
6+
unitType: exercise
7+
title: Exercise - Define child resources
8+
description: Learn how to create child resources in your Bicep template.
9+
ms.date: 05/28/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: 10
16+
content: |
17+
[!include[](includes/4-exercise-define-child-resources.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.child-extension-bicep-templates.define-extension-resources
3-
title: Define extension resources
4-
metadata:
5-
unitType: learning-content
6-
title: Define extension resources
7-
description: Learn how to create extension resources in your Bicep 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: 2
15-
content: |
16-
[!include[](includes/5-define-extension-resources.md)]
17-
1+
### YamlMime:ModuleUnit
2+
uid: learn.azure.child-extension-bicep-templates.define-extension-resources
3+
title: Define extension resources
4+
metadata:
5+
unitType: learning-content
6+
title: Define extension resources
7+
description: Learn how to create extension resources in your Bicep template.
8+
ms.date: 05/28/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/5-define-extension-resources.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.child-extension-bicep-templates.work-with-existing-resources
3-
title: Work with existing resources
4-
metadata:
5-
unitType: learning-content
6-
title: Work with existing resources
7-
description: Learn how to refer to existing resources within your Bicep 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: 4
15-
content: |
16-
[!include[](includes/6-work-with-existing-resources.md)]
17-
1+
### YamlMime:ModuleUnit
2+
uid: learn.azure.child-extension-bicep-templates.work-with-existing-resources
3+
title: Work with existing resources
4+
metadata:
5+
unitType: learning-content
6+
title: Work with existing resources
7+
description: Learn how to refer to existing resources in your Bicep 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: 4
15+
content: |
16+
[!include[](includes/6-work-with-existing-resources.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.child-extension-bicep-templates.exercise-deploy-extension-existing-resources
3-
title: Exercise - Deploy extension resources and use existing resources
4-
sandbox: true
5-
metadata:
6-
unitType: exercise
7-
title: Exercise - Refer to existing resources
8-
description: Learn how to deploy extension resources and refer to existing resources within your Bicep 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: 5
17-
content: |
18-
[!include[](includes/7-exercise-deploy-extension-existing-resources.md)]
19-
1+
### YamlMime:ModuleUnit
2+
uid: learn.azure.child-extension-bicep-templates.exercise-deploy-extension-existing-resources
3+
title: Exercise - Deploy extension resources and use existing resources
4+
sandbox: true
5+
metadata:
6+
unitType: exercise
7+
title: Exercise - Refer to existing resources
8+
description: Learn how to deploy extension resources and refer to existing resources in your Bicep template.
9+
ms.date: 05/28/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: 5
17+
content: |
18+
[!include[](includes/7-exercise-deploy-extension-existing-resources.md)]
19+
Lines changed: 56 additions & 56 deletions
Original file line numberDiff line numberDiff line change
@@ -1,56 +1,56 @@
1-
### YamlMime:ModuleUnit
2-
uid: learn.azure.child-extension-bicep-templates.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: 4
15-
content: |
16-
quiz:
17-
questions:
18-
- content: |
19-
Your R&D team asked you to deploy an Azure SQL database so they can compare it to Azure Cosmos DB.
20-
An SQL database is a child resource of the Azure SQL logical server resource.
21-
Which of these statements is true?
22-
choices:
23-
- content: The SQL database resource might be in a different resource provider than its parent.
24-
isCorrect: false
25-
explanation: Incorrect. Child resources always exist within the same resource provider as their parent. Extension resources might exist in different resource providers.
26-
- content: You can use the `parent` property to tell Bicep about the relationship between the parent and child resources.
27-
isCorrect: true
28-
explanation: Correct. In Bicep, you define child resources by using the `parent` property, by using nested resources, or by constructing a child resource name directly.
29-
- content: An Azure SQL logical server instance is an implicit resource.
30-
isCorrect: false
31-
explanation: Incorrect. You need to explicitly deploy a logical server instance. It's not an implicit resource.
32-
- content: |
33-
You're asked to deploy an extension resource with the type: `Microsoft.Authorization/roleAssignments`.
34-
Which of these approaches should you consider?
35-
choices:
36-
- content: Use the `scope` property on a resource definition.
37-
isCorrect: true
38-
explanation: Correct. In Bicep, you define an extension resource by using the `scope` keyword.
39-
- content: Use the `parent` property on a resource definition.
40-
isCorrect: false
41-
explanation: Incorrect. You can define child resources by using the `parent` keyword, but this keyword isn't applicable to extension resources.
42-
- content: Use a nested resource declaration.
43-
isCorrect: false
44-
explanation: Incorrect. You can define child resources by using a nested resource definition, but you can't define extension resources in this way.
45-
- content: Which of these statements is true?
46-
choices:
47-
- content: Using the `existing` keyword on a resource declaration means that Bicep redeploys the resource.
48-
isCorrect: false
49-
explanation: Incorrect. The `existing` keyword means that Bicep doesn't attempt to deploy the resource. Use the keyword to refer to the resource within your Bicep template.
50-
- content: All resource definitions in a Bicep file need to have a SKU property set, even existing resources.
51-
isCorrect: false
52-
explanation: Incorrect. When you define a resource by using the `existing` keyword, you don't specify the SKU property or most other properties.
53-
- content: You can access the properties of existing resources by using the resource's symbolic name.
54-
isCorrect: true
55-
explanation: Correct. You can use an existing resource to access its properties, including secrets that the resource exposes.
56-
1+
### YamlMime:ModuleUnit
2+
uid: learn.azure.child-extension-bicep-templates.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: 4
15+
content: |
16+
quiz:
17+
questions:
18+
- content: |
19+
Your R&D team asked you to deploy an Azure SQL database so they can compare it to Azure Cosmos DB.
20+
An SQL database is a child resource of the Azure SQL logical server resource.
21+
Which of these statements is true?
22+
choices:
23+
- content: The SQL database resource might be in a different resource provider than its parent.
24+
isCorrect: false
25+
explanation: Incorrect. Child resources always exist in the same resource provider as their parent. Extension resources might exist in different resource providers.
26+
- content: You can use the `parent` property to inform Bicep about the relationship between the parent and child resources.
27+
isCorrect: true
28+
explanation: Correct. In Bicep, you define child resources by using the `parent` property, by using nested resources, or by constructing a child resource name directly.
29+
- content: An Azure SQL logical server instance is an implicit resource.
30+
isCorrect: false
31+
explanation: Incorrect. You need to explicitly deploy a logical server instance. It's not an implicit resource.
32+
- content: |
33+
You're asked to deploy an extension resource with the type `Microsoft.Authorization/roleAssignments`.
34+
Which of these approaches should you consider?
35+
choices:
36+
- content: Use the `scope` property on a resource definition.
37+
isCorrect: true
38+
explanation: Correct. In Bicep, you define an extension resource by using the `scope` keyword.
39+
- content: Use the `parent` property on a resource definition.
40+
isCorrect: false
41+
explanation: Incorrect. You can define child resources by using the `parent` keyword, but this keyword isn't applicable to extension resources.
42+
- content: Use a nested resource declaration.
43+
isCorrect: false
44+
explanation: Incorrect. You can define child resources by using a nested resource definition, but you can't define extension resources in this way.
45+
- content: Which of these statements is true?
46+
choices:
47+
- content: When you use the `existing` keyword on a resource declaration, Bicep redeploys the resource.
48+
isCorrect: false
49+
explanation: Incorrect. The `existing` keyword means that Bicep doesn't attempt to deploy the resource. Use the keyword to refer to the resource within your Bicep template.
50+
- content: All resource definitions in a Bicep file need to have an SKU property set, even existing resources.
51+
isCorrect: false
52+
explanation: Incorrect. When you define a resource by using the `existing` keyword, you don't need to specify the SKU property or most other properties.
53+
- content: You can access the properties of existing resources by using the resource's symbolic name.
54+
isCorrect: true
55+
explanation: Correct. You can use an existing resource to access its properties, including secrets that the resource exposes.
56+

0 commit comments

Comments
 (0)