languages:
- nodejs
- javascript
products:
- azure
- azure devops yaml pipelines
- azure-app-service
- terraform
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
- 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'