Automating the deployment
As we discussed in the previous section, serverless offerings such as Azure Functions and Azure Storage abstract away the operating system configuration. Therefore, when we deploy, we just need an application package that’s compatible with the target platform. In this section, we’ll create an automation pipeline using GitHub Actions that will provision our application to its new serverless home in Azure.
Terraform
The first thing that we need to do is provision our environment to Azure. This is going to be extremely similar to the way we did this in the previous chapters. In Chapter 10, we needed to ensure that our VM images were built and available before we executed Terraform because the Terraform code base referenced the VM images when it provisioned the VMs. This means that with our VM architecture, application deployment happens before Terraform provisions the environment:
Figure 12.9 – Packer-produced...