Summary

Completed

Thanks to your efforts, your toy company has a large set of Bicep files to deploy all aspects of its Azure infrastructure. Managing these files has been a challenge, though, and you needed a way to keep track of your changes.

In this module, you learned how the Git version control system can be used with Bicep code to provide a repository for your deployment templates. You learned about the benefits of using Git with Bicep code, and how Git can scale from an individual to an entire organization.

You used Visual Studio Code to initialize a Git repository, added and updated some files, viewed their history, and created a branch. You then merged that branch. Finally, you published your Git repository so that your colleagues can access it. Publishing the repository will also enable you to use a deployment pipeline in the future.

Now, whenever you make changes to your Bicep templates, you can be sure that your updates are tracked and that you can see older versions of your files. You can even use branches to work on experimental changes without breaking the current known-good files.

Learn more

There's a lot more to know about Git's capabilities for working with deployment templates and scripts. As you continue to learn about Bicep and infrastructure as code, it's important to also learn about version control:

The following features of Git are useful when you work with infrastructure as code:

Much of the power of Git comes from its use in team environments. Specific features you'll likely work with include: