Git Product home page Git Product logo

terraform-azure-virtual-machine's Introduction

Use Terraform to Create an Azure Virtual Machine

We are going to provision a virtual machine within the Microsoft Azure cloud using Terraform. We can use either Linux, Mac or Windows to run the terraform plan and apply.

Pre-Conditions

Before you provision the machine ensure that you have

  • terraform installed
  • an Azure account
  • the Azure CLI installed on the machine running terraform

Steps to Install the Azure Virtual Machine with Terraform

Log into Azure using the Azure CLI.

az login

In the browser that pops up select your Azure account and log in. The JSON resulting from the login will state the subscription ID, the tenant ID, the home tenant ID and the user name.

Now in the terminal issue these commands.

git clone https://github.com/devops4me/terraform-azure-virtual-machine
terraform init
terraform plan
terraform apply -auto-approve
#  Now check that the resource group and VM infrastructure were created
terraform destroy -auto-approve

terraform-azure-virtual-machine's People

Contributors

workshopah avatar

Stargazers

Michael Brunak avatar

Watchers

James Cloos avatar  avatar Apollo Akora avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.