Creating Azure Web Apps With Terraform

Creating repeatable processes that reduce potential error is key for efficiency in the cloud. Terraform is a platform that makes provisioning resources in the cloud easy and predictable. 

 

Scope of this post:

 

  1. Provisioning Azure resources with Terraform

  2. Using Terraform with existing resources

 

This solution can be done easily through Azure Cloudshell. This can also be done on visual studio code with the appropriate plugins.

 

The general steps are as follows:

 

  1. Install/Update Terraform on windows or Azure Cloud Shell

  2. Create a directory to place Terraform Code into

  3. Place Terraform script (from Microsoft resource) into that directory

  4. Initialize, create a plan, and execute Terraform script. 

Code and further instructions on how to use Terraform to create an Azure App Service can be found here