Leanpub Header

Skip to main content

Azure Bicep - Zero to Hero

Deploy and Manage Azure Infrastructure as Code

The most comprehensive resource to get you started with Azure Bicep and help you master provisioning and managing Microsoft Azure infrastructure as code.

Minimum price

$12.99

$20.00

You pay

$20.00

Author earns

$16.00
$

...Or Buy With Credits!

You can get credits monthly with a Reader Membership
PDF
EPUB
WEB
177
Pages
30,445Words
About

About

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.

Share this book

Installments completed

11 / 11

Author

About the Author

Ravikanth Chaganti

Ravikanth is a Distinguished Engineer and an architect in the AI Solutions Engineering team at Dell Technologies. He is a multi-year recipient of the Microsoft Most Valuable Professional (MVP) award in Azure AI Platform. Ravikanth is the author of Windows PowerShell Desired State Configuration Revealed (Apress) and Pro PowerShell Desired State Configuration (Apress). He self-published several books on Leanpub. He can be seen speaking regularly at local user group events and conferences in India and abroad.

Contents

Table of Contents

Part 1

Introduction

  1. Infrastructure As Code
  2. Azure Resource Manager
  3. Why Bicep
  4. Introducing Bicep
  5. Summary

Getting Started

  1. Installing Bicep CLI
  2. Authoring Bicep templates
  3. First Bicep template
  4. Compiling and deploying Bicep templates
  5. Summary

Working with resources

  1. Defining resources
  2. Resource dependencies
  3. Child resources
  4. Extension Resources
  5. Reference existing resources
  6. Scoped resource deployment
  7. Summary

Authoring reusable templates

  1. Parameters
  2. Parameter decorators
  3. Output
  4. Generating Parameter files
  5. Summary

Variables, functions, and expressions

  1. Summary

Iterations and Conditions

  1. Iterations
  2. Sequential deployments
  3. Conditional deployments
  4. Combining iterations and conditions
  5. Summary

Creating and Consuming Modules

  1. Creating modules
  2. Consuming modules
  3. Iterations and conditions
  4. Deploying at multiple scopes
  5. Sharing modules
  6. Module aliases
  7. Summary

Developing Bicep templates in VS Code devcontainers

  1. Visual Studio Code Development Containers
  2. GitHub Codespaces
  3. Summary

CI and CD of Bicep templates

  1. Customizing linter rules
  2. Build and deploy
  3. A local pipeline
  4. GitHub actions for CI/CD
  5. Summary

Built-in function primer

  1. any function
  2. loadJsonContent function
  3. getSecret function
  4. Summary

User-defined types

  1. Defining custom types
  2. Exporting and importing custom types
  3. Summary

Part 2

Provisioning a Kubernetes Cluster

  1. Kubernetes cluster architecture
  2. Bicep template structure
  3. Provisioning workflow
  4. Summary

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 earned over $14 million writing, 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

Write and Publish on Leanpub

You can use Leanpub to easily write, publish and sell in-progress and completed ebooks and online courses!

Leanpub is a powerful platform for serious authors, combining a simple, elegant writing and publishing workflow with a store focused on selling in-progress ebooks.

Leanpub is a magical typewriter for authors: just write in plain text, and to publish your ebook, just click a button. (Or, if you are producing your ebook your own way, you can even upload your own PDF and/or EPUB files and then publish with one click!) It really is that easy.

Learn more about writing on Leanpub