Azure Bicep - Zero to Hero
Azure Bicep - Zero to Hero
Deploy and Manage Azure Infrastructure as Code
About the Book
Many are struggling to make ends meet ever since the pandemic started. Therefore, I decided that all proceeds from this book will go to charity.
Azure Resource Manager (ARM) brought in a new deployment model to Microsoft Azure. Unlike the classic deployment model, ARM looks at groups of resources and manages the life cycle of these resource groups from end to end. ARM simplified how you built and managed services on Azure. Along with the ARM deployment model, Microsoft also introduced a new way of provisioning Azure services through Azure Resource Manager templates. These templates are based on JSON data representation and provided a declarative way to define your Azure infrastructure. ARM templates offer a great way to automate infrastructure provisioning and integrate well into the infrastructure as code practices. However, using JSON data representation for ARM template language makes it too complex to read and write more extensive infrastructure definitions. For users getting started with Azure infrastructure deployments, this can be a nightmare.
Enter Azure Bicep. Bicep language is a transparent abstraction over ARM template language. Azure Bicep templates traspile to ARM JSON templates. Bicep language is easy to learn and very simple to read and write. Being a transparent abstraction on top of ARM templates, Bicep supports the same resource types and properties. By building on top of resource specification API as the backend, Bicep enables day-zero support for any new resource introduced as an Azure service.
This book focuses on deploying and managing Azure infrastructure with Bicep and covers everything that you need to know right from basics to the advanced usage of Bicep language to create complex Azure infrastructure configurations and implementing continuous pipelines for your Azure infrastructure configurations.
Table of Contents
- Part 1
-
Introduction
- Infrastructure As Code
- Azure Resource Manager
- Why Bicep
- Introducing Bicep
- Summary
-
Getting Started
- Installing Bicep CLI
- Authoring Bicep templates
- First Bicep template
- Compiling and deploying Bicep templates
- Summary
-
Working with resources
- Defining resources
- Resource dependencies
- Child resources
- Extension Resources
- Reference existing resources
- Scoped resource deployment
- Summary
-
Authoring reusable templates
- Parameters
- Parameter decorators
- Output
- Generating Parameter files
- Summary
-
Variables, functions, and expressions
- Summary
-
Iterations and Conditions
- Iterations
- Sequential deployments
- Conditional deployments
- Combining iterations and conditions
- Summary
-
Creating and Consuming Modules
- Creating modules
- Consuming modules
- Iterations and conditions
- Deploying at multiple scopes
- Sharing modules
- Module aliases
- Summary
-
Developing Bicep templates in VS Code devcontainers
- Visual Studio Code Development Containers
- GitHub Codespaces
- Summary
-
CI and CD of Bicep templates
- Customizing linter rules
- Build and deploy
- A local pipeline
- GitHub actions for CI/CD
- Summary
-
Built-in function primer
- any function
- loadJsonContent function
- getSecret function
- Summary
-
User-defined types
- Defining custom types
- Exporting and importing custom types
- Summary
- Part 2
-
Provisioning a Kubernetes Cluster
- Kubernetes cluster architecture
- Bicep template structure
- Provisioning workflow
- Summary
Other books by this author
The Leanpub 60 Day 100% Happiness Guarantee
Within 60 days of purchase you can get a 100% refund on any Leanpub purchase, in two clicks.
Now, this is technically risky for us, since you'll have the book or course files either way. But we're so confident in our products and services, and in our authors and readers, that we're happy to offer a full money back guarantee for everything we sell.
You can only find out how good something is by trying it, and because of our 100% money back guarantee there's literally no risk to do so!
So, there's no reason not to click the Add to Cart button, is there?
See full terms...
Earn $8 on a $10 Purchase, and $16 on a $20 Purchase
We pay 80% royalties on purchases of $7.99 or more, and 80% royalties minus a 50 cent flat fee on purchases between $0.99 and $7.98. You earn $8 on a $10 sale, and $16 on a $20 sale. So, if we sell 5000 non-refunded copies of your book for $20, you'll earn $80,000.
(Yes, some authors have already earned much more than that on Leanpub.)
In fact, authors have earnedover $14 millionwriting, publishing and selling on Leanpub.
Learn more about writing on Leanpub
Free Updates. DRM Free.
If you buy a Leanpub book, you get free updates for as long as the author updates the book! Many authors use Leanpub to publish their books in-progress, while they are writing them. All readers get free updates, regardless of when they bought the book or how much they paid (including free).
Most Leanpub books are available in PDF (for computers) and EPUB (for phones, tablets and Kindle). The formats that a book includes are shown at the top right corner of this page.
Finally, Leanpub books don't have any DRM copy-protection nonsense, so you can easily read them on any supported device.
Learn more about Leanpub's ebook formats and where to read them