Skip to content

Azure App Service deployment example with Terraform and ADO yaml pipeline

License

Notifications You must be signed in to change notification settings

IrinaSouth/azure-terraform-appservice-yaml-pipeline

Repository files navigation

Azure app service infrastructure-as-code with Terraform and ADO yaml pipeline

Screenshot 2021-06-02 at 12 03 54


languages:

  • nodejs
  • javascript

products:

  • azure
  • azure devops yaml pipelines
  • azure-app-service
  • terraform

Description

This sample demonstrates Azure infrastructure-as-code with Terraform and ADO yaml pipeline. Creates dev and prod environments, builds and tests a tiny Hello World Node.js app and deploys app to Azure App Service. Consequently provides pipelines to destroy dev and prod environments

Requirements

  • Azure Cloud
  • Azure DevOps
  • Terraform extension for Azure DevOps
  • Service principal with permissions to deploy resources in Azure Cloud (create in ADO a Service Principal with alias name 'nodejs-cicd')
  • This is the only resources that need to be created manually in advance in Azure in order to store the Terraform state file:
   resource group name: 'nodejs-cicd-rg'
       storage account name: 'tfops'
          container name: 'tfstate'