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
For your toy-launch website, you decide to first create a proof of concept by creating a basic Bicep file. In this exercise, you'll create a storage account, Azure App Service plan, and app. Later, you'll modify the file to make it more reusable.
4
4
@@ -11,7 +11,7 @@ During the process, you'll:
11
11
> - Add an App Service plan and app to the file.
12
12
> - Provision the infrastructure again to see the new resources.
13
13
14
-
[!INCLUDE [Install the Bicep extension for Visual Studio Code](../../includes/azure-file-bicep-exercise-vscode-extension.md)]
14
+
[!INCLUDE [Install the Bicep extension for Visual Studio Code](../../includes/azure-template-bicep-exercise-vscode-extension.md)]
15
15
16
16
## Create a Bicep file that contains a storage account
17
17
@@ -25,7 +25,7 @@ During the process, you'll:
25
25
26
26
1. Add the following Bicep code into the file. You'll deploy the file soon. It's a good idea to type the code yourself instead of copying and pasting so you can see how the tooling helps you to write your Bicep files.
> Bicep is strict about where you put line breaks, so make sure you don't put line breaks in different places than listed here.
@@ -43,7 +43,7 @@ During the process, you'll:
43
43
44
44
::: zone pivot="cli"
45
45
46
-
[!INCLUDE [Bootstrapping instructions for first Bicep exercise - CLI](../../includes/azure-file-bicep-exercise-sandbox-deploy-cli.md)]
46
+
[!INCLUDE [Bootstrapping instructions for first Bicep exercise - CLI](../../includes/azure-template-bicep-exercise-sandbox-deploy-cli.md)]
47
47
48
48
### Deploy the file to Azure
49
49
@@ -59,7 +59,7 @@ You'll see `Running...` in the terminal.
59
59
60
60
::: zone pivot="powershell"
61
61
62
-
[!INCLUDE [Bootstrapping instructions for first Bicep exercise - PowerShell](../../includes/azure-file-bicep-exercise-sandbox-deploy-powershell.md)]
62
+
[!INCLUDE [Bootstrapping instructions for first Bicep exercise - PowerShell](../../includes/azure-template-bicep-exercise-sandbox-deploy-powershell.md)]
Copy file name to clipboardExpand all lines: learn-pr/azure/build-first-bicep-file/includes/6-exercise-add-parameters-variables-bicep-file.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
@@ -25,7 +25,7 @@ During the process, you'll:
25
25
26
26
Also notice that you're using a variable for the Azure App Service plan name, but you're using parameters for the other names. Storage accounts and App Service apps need globally unique names, but App Service plan names need to be unique only within their resource group. This difference means it's not a concern to use the same App Service plan name across different deployments, as long as the deployments are all going into different resource groups.
1. Find the places within the resource definitions where the `location` and `name` properties are set, and update them to use the parameter values. After you're finished, the resource definitions within your Bicep file should look like this:
Copy file name to clipboardExpand all lines: learn-pr/azure/create-composable-bicep-files-using-modules/includes/2-create-use-bicep-modules.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
@@ -14,7 +14,7 @@ Bicep modules help you address these challenges by splitting your code into smal
14
14
15
15
After you've created a module, you can reuse it in multiple Bicep files, even if the files are for different projects or workloads. For example, when you build out one solution, you might create separate modules for the app components, the database, and the network-related resources. Then, when you start to work on another project with similar network requirements, you can reuse the relevant module.
16
16
17
-
:::image type="content" source="../../includes/media/bicep-templates-modules.png" alt-text="Diagram that shows a template referencing three modules: application, database, and networking. The networking module is then reused in another template." border="false":::
17
+
:::image type="content" source="../../includes/media/bicep-files-modules.png" alt-text="Diagram that shows a template referencing three modules: application, database, and networking. The networking module is then reused in another template." border="false":::
18
18
19
19
You can even share modules within your team, within your organization, or with the Azure community. You'll learn more about sharing Bicep modules in a future Microsoft Learn module.
0 commit comments