Creating basic  infra of Azure using Terraform

Creating basic infra of Azure using Terraform

Intro:

In order to create a basic infrastructure in Azure using Terraform. we need knowledge on basic keywords in azure

Resource Group: used to manage of group resources in Azure

Storage account: unlike AWS which stores its instance boot disk in disks list Azure needs a storage account to hold boot disk of instance

Storage container: is a like bucket in AWS in azure it is storage container

Virtual Network: is a private network created in Azure Iaas network dedicated to our account which isolates our instances from common or default network provided by azure with custom subnet

Security Group: is a single/set of firewall rules which decides network traffic in and out from virtual network

Subnet: is a custom CIDR block of ip addresses to our virtual network

writing infrastructure as code to Azure using Terraform to launch basic infrastructure

provider.tf

azure4.JPG

Resourcegroup.tf

azure5.JPG

Storageaccount.tf

azure6

Storagecontainer.tf

azure7.JPG

Securitygroup.tf

azure8

Virtualnetwork.tf

azure9.JPG

Subnet.tf

azure10.JPG

Public ip.tf

azure11.JPG

public creates a static public ip

azure12.JPG

Networkinterface.tf

azure13

creates a network interface to attach to particular instance in particular subnet

Instance.tf

azure14.JPG

azure16.JPG

Terraform plan command will evaluate syntax and will resources to add

Infrastructure creation plan illustration

azure17

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s