In this lab, we will exercise the ability to make sure that dependent resources are deployed in the correct order in a Bicep file. We will do this by adding individual dependent resources and parent/child resources that are separate and nested.
Learning Objectives
Successfully complete this lab by achieving the following learning objectives:
- Add Individual Dependent Resources
- Create a Bicep file called
deploy.bicep
to add and deploy resources with. - Add a Web App resource with an implicit dependency to an App Service plan.
- Add the App Service plan.
- Create a Bicep file called
- Add Nested Parent/Child Resources
- Add a storage account to the Bicep file.
- Add a blob resource within the storage account resource named
default
. - Add a storage container resource within the blob resource.
- Add Separate Parent/Child Resources
- Add a storage account to the Bicep file.
- Separately add a blob resource referencing the parent storage account.
- Separately add a storage container resource referencing the parent blob resource.
- Deploy File
- Save the Bicep file and deploy it.
- Check to ensure that dependencies have been deployed successfully.