Azure DevOps: Provision API Infrastructure using Terraform - Full Course

Azure DevOps: Provision API Infrastructure using Terraform - Full Course

In this full course, we’ll automatically provision an API on Azure including the infrastructure required to run it, (by defining the infrastructure as code)! You’ll be shown how to do this completely step by step using: .NET Core 3.1, Docker, Docker Hub, Azure DevOps, Terraform and Azure.

In this full course, we’ll automatically provision an API on Azure including the infrastructure required to run it, (by defining the infrastructure as code)! You’ll be shown how to do this completely step by step using: .NET Core 3.1, Docker, Docker Hub, Azure DevOps, Terraform and Azure.

When done, you’ll understand the power of Infrastructure as Code!

Level: Beginner / Intermediate Code on GitHub: https://github.com/binarythistle/S03E03---Azure-Devops-and-Terraform

INTRODUCTION

  • 1:57 Course Overview
  • 5:23 What we'll build
  • 8:22 Benefits of Infrastructure as Code
  • 9:35 Tooling

API, DOCKER & GIT

  • 10:55 Set up / Scaffold API
  • 12:50 Remove Https Redirection
  • 14:00 Dockerfile: Package with Docker
  • 15:20 Build Docker Image
  • 16:43 Run Docker Image
  • 18:09 Push Docker Image to Docker Hub
  • 19:10 Add .gitignore file to project
  • 19:43 Initialise Local Git Repository
  • 20:25 Create Github Repo and push local repo

TERRAFORM

  • 22:01 Benefits Terraform
  • 26:28 Write our first Infrastructure as Code (main.tf file)
  • 32:29 Overview of Terraform commands (init, plan, apply & destroy)
  • 33:31 Initialise Terraform Provider (terraform init)
  • 34:00 View the Terraform Plan (terraform plan)
  • 34:36 Security considerations Pt 1
  • 36:30 Provision Resources (terraform apply)
  • 39:00 Add a Container Resource to our main.tf file
  • 41:55 Re-run terraform plan
  • 42:30 Re-run terraform apply
  • 43:25 Test terraform provsioned API
  • 44:00 Security Considerations Pt 2 Service Principal
  • 48:05 Create Service Principal on Azure
  • 54:00 Add Service Principle Environment Variables for User
  • 56:45 Test Service Principle Set up at Command Line

AZURE DEVOPS (Pt1)

  • 58:36 Create Azure DevOps Project
  • 59:35 Create Service Connections
  • 1:02:45 Create our Azure DevOps Pipeline
  • 1:08:00 Manually Trigger Pipeline (Deploy Docker Image)
  • 1:10:10 Check Out Docker Image was deployed
  • 1:11:42 Trigger Pipeline from Desktop

AZURE DEVOPS (Pt2)

  • 1:15:21 Configure Pipeline to use Service Principal
  • 1:18:33 Terraform State (terraform.tfstate)
  • 1:21:29 Create Azure storage Account to persist terraform.tfstate
  • 1:27:13 Update main.tf to use Azure Storage backend
  • 1:29:06 Add Terraform to azure-pipelines.yml
  • 1:37:25 Use terraform Destroy to remoeve all resources on Azure
  • 1:39:18 Remove Docker Image from Docker Hub
  • 1:40:20 CHECKPOINT: Clean slate before we run our Pipeline
  • 1:40:43 Push all our code to GitHub to trigger build & provison stages
  • 1:43:10 Provisioning Failure Investigation
  • 1:45:10 Image Versioning Discussion
  • 1:49:21 Idempotency and the need for versioning
  • 1:51:50 Inject build verion in to main.tf
  • 1:55:55 Re-run out pipeline
  • 2:00:25 Test Our API

FINAL THOUGHTS & ACKNOWLEDGEMENTS

  • 2:01:22 Homework
  • 2:02:35 Patreon Supporter Credits

azure devops docker api

Bootstrap 5 Complete Course with Examples

Bootstrap 5 Tutorial - Bootstrap 5 Crash Course for Beginners

Nest.JS Tutorial for Beginners

Hello Vue 3: A First Look at Vue 3 and the Composition API

Building a simple Applications with Vue 3

Deno Crash Course: Explore Deno and Create a full REST API with Deno

How to Build a Real-time Chat App with Deno and WebSockets

Convert HTML to Markdown Online

HTML entity encoder decoder Online

NET Core app using Docker, Azure DevOps, Azure Container Registry

This is a guide on how to use Azure DevOps to build and then publish a docker image as an Azure App Service, using Azure Container Registry.

Top 10 API Security Threats Every API Team Should Know

Learn what are the most important API security threats engineering leaders should be aware of and steps you can take to prevent them

Docker Explained: Docker Architecture | Docker Registries

Following the second video about Docker basics, in this video, I explain Docker architecture and explain the different building blocks of the docker engine; docker client, API, Docker Daemon. I also explain what a docker registry is and I finish the video with a demo explaining and illustrating how to use Docker hub.

Create, Build, Deploy and Configure an Azure Function with Azure DevOps and Azure CLI

How to create, build, deploy and configure an Azure Function using Azure DevOps, Azure CLI and Powershell.

An API-First Approach For Designing Restful APIs | Hacker Noon

I’ve been working with Restful APIs for some time now and one thing that I love to do is to talk about APIs.