IaC is the act of using source code to define and provision cloud infrastructure. This makes it easier to deploy and manage your infrastructure in a repeatable and consistent way. IaC is also a good way to ensure that your infrastructure is compliant with your organization's policies and standards. What is Infrastructure as Code?
Advantages of IaC Configurations are specified in Code Increases the reliability of deployments because it provides a single source of truth for the state of the infrastructure You can test, Version and rollback your infrastructure Automated infrastructure deployments are faster than manual deployments
Infrastructure as Code Tools Terraform Pulumi Ansible Chef Puppet Cross Plane AWS CloudFormation Google Cloud deployment manager Azure Resource Manager Azure Bicep
Azure Bicep What is Bicep? Bicep is a domain specific language that uses declarative syntax to deploy Azure resources( designed for a specific scenario)
How Bicep Works? Bicep is transpiled to JSON and that JSON becomes an input to the resource manager. When that happen, Azure is now able to create the resources specified in the transpiled JSON template.
Advantages of using Bicep Simple syntax Full Azure Support All state is stored in Azure Easy to understand and learn
Setting up for Azure Bicep What you need An Azure Account Visual Studio Code Visual Studio Code Bicep extension Powershell Bicep CLI AZ CLI
Deploying Azure Bicep Template What we'd learn: Resource groups Subscriptions Management groups Tenants
A Resource group is a container that can hold related azure resources Resource Group
Resource Group Scope Resource Group Deployments
Subscription An Azure subscription is a container that can hold a collection of connected business or technical resources You can have one or more resource groups in a subscription
Management Group An Azure Management group is logical containers that allow Azure Administrators to manage access, policy and compliance across multiple Azure Subscriptions Management Group Scope
Subscription Scope Subscription Deployments
Management Group Deployments
Tenants A tenant represents an organization. It is a dedicated instance of Azure AD that an organization or app developer receives at the beginning of a relation with microsoft .