How to Bootstrapping Linux & Windows Azure VMs with Terraform

Note: this story was updated on May 23, 2020 to add Complex PowerShell Scripts using Template_File and Variables (point 6).

A very common task when we deploy Azure Virtual Machines using Terraform is deploying applications and/or code into the machine at the boot time.

--

--

--

Certified AWS, Azure & GCP Architect | HashiCorp Ambassador | Terraform SME | KopiCloud Founder | Entrepreneur & Innovator | Book Author | Husband & Dad of ✌

Love podcasts or audiobooks? Learn on the go with our new app.

Recommended from Medium

Bounty Hacker Write-up

Introducing Neomap, a Neo4j Desktop application for spatial data

Expose a REST API to different kinds of users with Api-Platform [Part 1/4]

Saffron Weekly (02/16/22)

Melon Dev Update — January/February 2018

2021: A programming odyssey.

What is Raspberry Pi? Introduction to Raspberry Pi

Download Tutu Helper For PC/Laptop Free Windows 8.1/8/7

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
Guillermo Musumeci

Guillermo Musumeci

Certified AWS, Azure & GCP Architect | HashiCorp Ambassador | Terraform SME | KopiCloud Founder | Entrepreneur & Innovator | Book Author | Husband & Dad of ✌

More from Medium

Migration of Terraform state between various backends.

AWS vs AZURE, which is more superior?

Terraform: Creating Reusable Modules-Part 1

How to Deploy a Red Hat Enterprise Linux (RHEL) VM in Azure using Terraform