This repository contains source codes and samples discussed in the book Getting started with Bicep - Infrastructure as code on Azure. This book is your guide to mastering Bicep! It contains a lot of practical solutions and examples to help you jump start your journey towards infrastructure as code for Azure!
The book Getting started with Bicep: Infrastructure as code on Azure is available as Kindle, paperback and hard cover! Direct link to Amazon : https://www.amazon.com/Getting-started-Bicep-Infrastructure-Azure-ebook-dp-B0984MQY2N/dp/B0984MQY2N
Infrastructure as Code is crucial to becoming successful in the Azure Cloud. Azure Resource Manager allows you to create resources in Azure in a declarative way. For many years we have been using ARM Templates to declare resources in a JSON format. Although ARM Templates are very powerful, the implementation of the JSON language is hard to read, maintain and debug. Bicep, a Domain Specific Language, overcomes these issues by providing a transparent abstraction layer on top of ARM and ARM Templates. This significantly improves the authoring experience. Bicep is easy to understand at a glance and straightforward to learn regardless of your experience with other programming languages.
After an introduction by Mark Russinovich, Azure CTO and Technical Fellow at Microsoft and Alex Frankel, Program Manager at Microsoft, the book starts with some history and background in Infrastructure as Code and ARM Templates. It continues by explaining Bicep and providing guidance on how to get started.
After the introduction, you will start your journey by understanding the syntax of Bicep. You will start by learning the basics first and you will gradually dive deeper in the more advanced scenarios.
The book also contains a dedicated chapter on a big real-world example which provides you with great insights on how to leverage Bicep for production usage.
Part of this book is also the Bicep playground, visualizer and a PowerShell module for Bicep provided by the community. Sample code used in this book is available on a dedicated GitHub repository.
- How to get started with the Bicep CLI and VSCode Extension
- Deploying Bicep files to Azure, including template specs
- Understanding the Bicep file structure
- How to use the basic concepts of variables, parameters, tags, decorators, expressions, and symbolic names
- Getting familiar with more advanced topics like dependencies, loops, conditions, target scopes, modules, nesting, module registries, pass resources between modules and shared variable files
- Leverage the latest Bicep features like snippets, scaffolding, and linter
- Use the Bicep Visualizer and Bicep playground to support the authoring of Templates
- Deploy Templates using Template Specs
- Use the Bicep PowerShell module as an extension to the Bicep CLI
DevOps engineers, Developers, consultants, and Azure architects with or without experience in ARM Templates and infrastructure as code who want to get started with Bicep.
- Why this book
- What is project bicep
- Getting started
- Bicep file structure explained
- Deploying bicep files to azure
- Bicep syntax
- Bicep playground and example code
- Bicep visualizer
- Template Specs
- Guest Chapter: Bicep PowerShell module
- A real-world example
- Alternatives to Bicep
- Closing Notes
- About the author