Skip to content

Commit 309195d

Browse files
committed
edits
1 parent 686445e commit 309195d

File tree

4 files changed

+26
-26
lines changed

4 files changed

+26
-26
lines changed
Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,28 @@
1-
Child and extension resources allow your Azure deployments to access the advanced functionality and power of the Azure platform. You can create these resource types in Bicep by using a clear and understandable template syntax.
1+
Child and extension resources enable your Azure deployments to access the advanced functionality and power of the Azure platform. You can create these resource types in Bicep by using a clear and understandable template syntax.
22

3-
You can also use Bicep to refer to resources that were created outside the Bicep file itself. For example, you can refer to resources that your colleagues created manually by using the Azure portal, or from within another Bicep template or module, even if they're in a different resource group or subscription. By using these features of Bicep, you can unlock the ability to create powerful templates that deploy all aspects of your Azure infrastructure.
3+
You can also use Bicep to refer to resources that were created outside of the Bicep file. For example, you can refer to resources that your colleagues created manually by using the Azure portal, or from within another Bicep template or module, even if the resources are in a different resource group or subscription. By using these features of Bicep, you can unlock the ability to create powerful templates that deploy all the components of your Azure infrastructure.
44

55
## Example scenario
66

77
Suppose you're responsible for deploying and configuring Azure infrastructure at a toy company. Your company's R&D department contacts you because they're working on a new toy drone that sprays glitter over unsuspecting targets. R&D team members are starting to test the drone. They plan to collect telemetry about the distance the drone can fly, the amount of glitter it can spray, and the battery level.
88

99
They want you to set up a new Azure Cosmos DB database for storing this valuable and highly sensitive product test data. They need you to log all database-access attempts so that they can feel confident that no competitors are accessing the data.
1010

11-
The team created a storage account to store all their product design documents, and they want you to help audit all attempts to access them.
11+
The team created a storage account to store all their product design documents, and they want you to help audit all attempts to access the documents.
1212

1313
:::image type="content" source="../media/1-architecture-diagram.png" alt-text="Architecture diagram showing how logs are sent from the new Azure Cosmos DB account and the storage account to the Log Analytics workspace." border="false":::
1414

15-
## What will we be doing?
15+
## What will you be doing?
1616

1717
In this module, you learn about Azure resource types, and how child and extension resources are used throughout Azure. You create a Bicep template that deploys a set of Azure resources, and you use several features of Bicep, including:
1818

19-
- Child resource definitions, through nested resources, the `parent` property, and by constructing multipart resource names.
19+
- Child resource definitions, through nested resources and the `parent` property, and by constructing multipart resource names.
2020
- Extension resource definitions, by using the `scope` property.
2121
- Existing resource references, by using the `existing` keyword.
2222

23-
## What is the main goal?
23+
## What's the main goal?
2424

25-
By the end of this module, you're able to create Bicep templates that include child and extension resources. You're also able to create Bicep templates that refer to pre-existing Azure resources that were created outside the template file.
25+
By the end of this module, you'll be able to create Bicep templates that include child and extension resources. You'll also be able to create Bicep templates that refer to pre-existing Azure resources that were created of outside the template file.
2626

2727
## Prerequisites
2828

@@ -31,10 +31,10 @@ You should be familiar with:
3131
- Creating and deploying basic Bicep templates.
3232
- Azure, including the Azure portal, subscriptions, resource groups, and resource definitions.
3333

34-
To follow along with the exercises in the module, you need:
34+
To complete the exercises in the module, you need:
3535

3636
- [Visual Studio Code](https://code.visualstudio.com), installed locally.
3737
- The [Bicep extension for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-bicep), installed.
38-
- Either:
38+
- One of the following:
3939
- The latest [Azure CLI](/cli/azure/install-azure-cli) tools, installed locally.
4040
- The latest version of [Azure PowerShell](/powershell/azure/install-az-ps), installed locally.

learn-pr/azure/child-extension-bicep-templates/includes/2-understand-azure-resources.md

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ All Azure resources are deployed with a specific *type*. The type identifies the
22

33
## Resource providers
44

5-
Azure Resource Manager is designed so that many different *resource providers* can be managed through Resource Manager APIs and ARM templates. A resource provider is a logical grouping of resource types, which usually relate to one or a few Azure services. Examples of resource providers include:
5+
Azure Resource Manager is designed so that many different *resource providers* can be managed through Resource Manager APIs and Azure Resource Manager (ARM) templates. A resource provider is a logical grouping of resource types that usually relate to one or a few Azure services. Examples of resource providers include:
66

77
- `Microsoft.Compute`, which is used for virtual machines.
88
- `Microsoft.Network`, which is used for networking resources like virtual networks, network security groups, and route tables.
@@ -22,37 +22,37 @@ Resource providers have to be registered for your subscription before you can us
2222

2323
A resource provider exposes multiple different types. Each resource type has its own set of properties and behaviors that define the resource and what it can do. For example, within the `Microsoft.Web` resource provider, there are several resource types, including:
2424

25-
- `sites`: Defines an App Service application or Azure Functions application. Properties include the environment variables that your application uses, and the supported protocols (HTTP and HTTPS) to access the application.
26-
- `serverFarms`: Defines an App Service plan, the infrastructure that runs your applications. Properties include the size and SKU of the servers, and the number of instances of your plan that you want to deploy.
25+
- `sites`. Defines an App Service application or Azure Functions application. Properties include the environment variables that your application uses, and the supported protocols (HTTP and HTTPS) to access the application.
26+
- `serverFarms`. Defines an App Service plan, the infrastructure that runs your applications. Properties include the size and SKU of the servers, and the number of instances of your plan that you want to deploy.
2727

28-
When you define resources in Bicep, you have to specify their resource type and the version of the resource provider's API that you want Bicep to use for the resource. This information helps the Bicep tooling and the Resource Manager understand which properties should be provided with the resource definition.
28+
When you define resources in Bicep, you have to specify their resource type and the version of the resource provider's API that you want Bicep to use for the resource. This information helps the Bicep tooling and the Resource Manager determine which properties should be provided with the resource definition.
2929

3030
> [!TIP]
3131
> It's a good idea to use a recent API version for each resource. New features in Azure services are sometimes available only in newer API versions.
3232
33-
You combine the resource provider and type name to make a fully qualified resource type name. The fully qualified type name consists of the resource provider name, a slash (`/`), and the resource type. For example, a storage accounts fully qualified type name is `Microsoft.Storage/storageAccounts`. In this instance, its resource provider name is `Microsoft.Storage`, and the resource type is `storageAccounts`.
33+
You combine the resource provider and type name to make a fully qualified resource type name. The fully qualified type name consists of the resource provider name, a slash (`/`), and the resource type. For example, a storage account's fully qualified type name is `Microsoft.Storage/storageAccounts`. In this instance, its resource provider name is `Microsoft.Storage` and the resource type is `storageAccounts`.
3434

3535
## Resource IDs
3636

3737
Every Azure resource has a unique resource ID. This ID includes information that helps disambiguate the resource from any other resource of the same type, or even from different resources that might share the same name. A resource ID for a storage account looks like this:
3838

3939
```
40-
/subscriptions/A123b4567c-1234-1a2b-2b1a-1234abc12345/resourceGroups/ToyDevelopment/providers/Microsoft.Storage/storageAccounts/secrettoys
40+
/subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e/resourceGroups/ToyDevelopment/providers/Microsoft.Storage/storageAccounts/secrettoys
4141
```
4242

43-
Let's look at a visual representation of the same information:
43+
Here's a visual representation of the same information:
4444

4545
:::image type="content" source="../media/2-resource-id.png" alt-text="Resource ID for a storage account, split with key/value pair on a separate line." border="false":::
4646

47-
You can see that a resource ID interleaves information about the resource type and the specific resource you deployed. Let's break this example resource ID into its components:
47+
You can see that a resource ID contains information about the resource type and the specific resource you deployed. Here's a breakdown of this example resource ID into its components:
4848

49-
- `subscriptions/A123b4567c-1234-1a2b-2b1a-1234abc12345` indicates that this resource is within the Azure subscription with ID. `A123b4567c-1234-1a2b-2b1a-1234abc12345`.
50-
- `resourceGroups/ToyDevelopment` indicates that the resource is within the resource group named `ToyDevelopment`.
49+
- `subscriptions/aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e` indicates that the resource is in the Azure subscription that has ID `aaaa0a0a-bb1b-cc2c-dd3d-eeeeee4e4e4e`.
50+
- `resourceGroups/ToyDevelopment` indicates that the resource is in the resource group named `ToyDevelopment`.
5151
- `providers/Microsoft.Storage` indicates that the resource is using a type from the `Microsoft.Storage` resource provider.
5252
- `storageAccounts` is the resource type.
5353
- `secrettoys` is the name of the storage account.
5454

5555
> [!TIP]
56-
> You can access the ID of any resource in Bicep by using the symbolic name and the `id` property. For example, if you define a storage account with the symbolic name `toyDesignDocumentsStorageAccount`, you can access its resource ID by using the expression `toyDesignDocumentsStorageAccount.id`.
56+
> You can access the ID of any resource in Bicep by using the symbolic name and the `id` property. For example, if you define a storage account that has the symbolic name `toyDesignDocumentsStorageAccount`, you can access its resource ID by using the expression `toyDesignDocumentsStorageAccount.id`.
5757
58-
Now that you understand the basics of resource types and resource IDs, let's look at child resources.
58+
Now that you understand the basics of resource types and resource IDs, you'll look at child resources.

learn-pr/azure/child-extension-bicep-templates/index.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,8 @@
22
uid: learn.azure.child-extension-bicep-templates
33
metadata:
44
moduleType: standard
5-
title: Deploy child and extension resources by using Bicep
6-
description: Learn how to deploy child and extension resources, and refer to existing resources, within your Bicep code.
5+
title: Deploy Child and Extension Resources by Using Bicep
6+
description: Learn how to deploy child and extension resources, and refer to existing resources, in Bicep code.
77
ms.service: azure-resource-manager
88
manager: jasongroce
99
ms.date: 05/27/2025
@@ -13,7 +13,7 @@ metadata:
1313
ms.devlang: bicep
1414
title: Deploy child and extension resources by using Bicep
1515
summary: |
16-
Deploy various Azure resources in your Bicep code. Define and use child and extension resources. Work with resources that you created outside a Bicep template or module.
16+
Deploy various Azure resources in your Bicep code. Define and use child and extension resources. Work with resources that you created outside of a Bicep template or module.
1717
abstract: |
1818
After completing this module, you'll be able to:
1919
- Explain resource types and resource IDs
@@ -24,10 +24,10 @@ prerequisites: |
2424
- Creating and deploying basic Bicep templates.
2525
- Azure, including the Azure portal, subscriptions, resource groups, and resource definitions.
2626
27-
To follow along with the exercises in the module, you need:
27+
To complete the exercises in the module, you need:
2828
- [Visual Studio Code](https://code.visualstudio.com), installed locally.
2929
- The [Bicep extension for Visual Studio Code](https://marketplace.visualstudio.com/items?itemName=ms-azuretools.vscode-bicep), installed.
30-
- Either:
30+
- One of the following:
3131
- The latest [Azure CLI](/cli/azure/install-azure-cli) tools, installed locally.
3232
- The latest version of [Azure PowerShell](/powershell/azure/install-az-ps), installed locally.
3333
iconUrl: /training/achievements/bicep/child-extension-bicep-templates.svg
-131 Bytes
Loading

0 commit comments

Comments
 (0)