This is a Workshop for Terraform on Azure.
Infrastructure as Code allows the management of your infrastructure including networks, virtual machines, platform services, and load balancers. Using Terraform configuration to describe the desired Azure resources needed for an environment ensures that consistent infrastructure is created each time it is deployed.
This Workshop is focused on:
- Understanding Infrastructure as Code concepts
- Terraform as an Infrastructure as Code provider for Azure
- Integrating Terraform on Azure DevOps tooling.
Attendees will learn basics of Infrastructure as Code and gain skills on deploying and managing Azure resources using Terraform.
Practical examples in this workshop include the creation of some basic Azure Resouces, however many others can be deployed using available Terraform resources.
- Sysadmins
- Infrastructure architects
- DevOps Engineers
- SRE
- Basic understanding of command line
- No previous Azure experience required
If you have no previous experience on Azure and want to read an overview, access this link:
The Power Point presentations used can be found: AzureTerraformWorkshopPresentation
These are the challenges for the workshop, it is important to note that they have to be done in order of appearance
- Challenge 00 - Getting Started
- Challenge 01 - Connecting to Azure
- Challenge 02 - Creating an Azure Virtual Machine
- Challenge 03 - Terraform Count
- Challenge 04 - Terraform Modules
- Challenge 05 - Public Module Registry
- Challenge 06 - Input Variables
- Challenge 07 - Remote Backend
- Challenge 08 - Azure Secrets
- Challenge 09 - Azure DevOps Optional
This workshop will require that you have access to an Azure Subscription with at least Contributor rights to create resources and the ability to generate a service principal for the subscription (you need permissions on you Azure AD tenant). If you do not currently have access you can create a trial account by going to https://azure.microsoft.com/en-us/free and registering for a 3-month trail.
Signing up for a trial requires:
- A unique Microsoft Live Account that has not registered for a trial for in the past. It is recommended that you do NOT use your corporate email.
- A Credit Card, used to verify identity and will not be charged unless you opt-in after the trial is over
If you are having issues with this access, please alert the instructor ASAP as this will prevent you from completing the challenges.
This workshop has been created by:
- Philippe Zenhaeusern- Microsoft
- Laura Nicolas- Microsoft
Forked from the repo
- Chris Matteson - Hashicorp
Other resources used:
Additional Resources can be found at:
- Terraform Hub: https://docs.microsoft.com/en-us/azure/terraform/
- Terraform Azure Provider: https://www.terraform.io/docs/providers/azurerm
- Terraform Version Switcher: https://github.com/kamatama41/tfenv
- Azure DevOps: https://docs.microsoft.com/en-us/azure/devops/index?view=azure-devops&viewFallbackFrom=vsts
- Blog Julien Corioland: https://blog.jcorioland.io/categories/#Terraform