Photo by Shawn Ang on Unsplash

If you are reading this post, you probably are in a situation where you have to use Terraform to manage your cloud infrastructure. But there are existing resources, not created using Terraform, that need to be managed by it.

I will show you how to sync your Terraform state with existing resources in Azure specifically. However, the steps to achieve this are virtually the same for other cloud providers.

To sync our Terraform state we’ll be using the terraform import command. This command allows us to bring under Terraform management resources that already exist or were created by other means…


CODEX

Photo by Nikola Mihajloski on Unsplash

Using environment variables with Terraform is very easy, but if you are a beginner at it then it can be a little bit tricky. Using them as input variables is fairly simple and the documentation, blogs, and other sources I found online were pretty useful. However, implementing environment variables that the Terraform providers have predefined for their configurations is not explicitly detailed in the documentation. I’ll try to explain as simple as I possibly can for anyone to easily understand how to use them.

Using Env Variables as Input Variables

This is very straightforward, if you have ever used environment variables then you already know how…


Photo by Drew Dempsey on Unsplash

Containerized apps have been on everyone’s lips for a while now, and it’s no surprise, they can be very useful. In this article, I’ll show you how to build and deploy your Dockerized app seamlessly into an Azure App Service.

For this guide I have created a demo environment where the Dockerfile is already set up and ready to go, an Azure Container Registry (ACR) has been created (Basic SKU for this demo), I’ll use ACR; however, there are multiple options for container registries that can be used. And the project’s code is allocated in a private Azure DevOps repo.

Create and Configure The App Service


Photo by tian kuan on Unsplash

This topic made me spend a while researching and analyzing which pipeline format to use when I was presented with the dilemma. Hopefully, this post will help you make an informed and beneficial decision in a short time. But first, a quick description of what classic and YAML pipelines are.

Classic pipelines are set up using a UI and clicking around, moving through tabs, and choosing between the options the UI shows you. The same definition applies to release pipelines, the difference is that the former are used generally to build applications and the latter to deploy them.

On the…

David Olivas

DevOps Engineer. Certified Azure Administrator. Tech Enthusiast

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store