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:
Provisioning Azure resources with Terraform
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:
Install/Update Terraform on windows or Azure Cloud Shell
Create a directory to place Terraform Code into
Place Terraform script (from Microsoft resource) into that directory
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