Deploying multiple environments using IaC
In the previous section, we learned that once the IaC assets have been created by the DevOps team, they can be deployed repeatedly to create different environments, each time achieving consistent results.
Let's get started with the following steps:
- If both of your templates worked as desired, there is no need to create the next set of resources one at a time. Let's do what the professionals do by running a script that will spin up the rest of the resources for us.
- Here is what the deployment script (
electroniz_isc.sh
) looks like. There is a section for every Azure resource that is required to be created. Notice the use of the template file and parameter files in the deployment script. The paths for template and parameter files are sent as arguments to this script. This means we can reuse the same script to deploy multiple...