Deploying Azure resources with Terraform
Deploy a serverless Cosmos DB database with Terraform to learn how to deploy resources on Azure using Infrastructure as Code. This lab explains how Terraform works, how to initialize it, and how it tracks the state of your environments. We also briefly touches on the differences between using Terraform and Azure's Bicep, and why Cybr recommends using Terraform regardless of whether you plan on going multi-cloud or not.
- 8 guided tasks

Scenario
Our CloudOps application needs a database to store incident history. The website and its backend Azure Function are ready in this testing environment. The Function has a managed identity, an Azure identity it can use instead of an application password. There's also an empty resource group for your database resources. I want you to deploy a Cosmos DB account, database, and container with Terraform. Then give the Function permission to save incidents and verify that it can read them. Inspect how Terraform tracks the resources, then remove them before you finish.
- Your Manager
What you will learn
- Learn how to get started using Terraform
- Configure and deploy Azure resources with Terraform
- Learn how Terraform tracks resources with state
- Compare Terraform with Azure Bicep