Giter Club home page Giter Club logo

trfm_azure2_lb_aset's Introduction

Terraform Project: Azure Load Balancer with Availability Set

Project scenario

We are tasked with provisioning an Azure Load Balancer for the HTTP and HTTPS requests with an availability set as the backend pool. We are also tasked to output subnet IDs and the load balancer's frontend IP. Lastly we will keep the tfstate file in a separate storage account remotely.

Project Objectives

In this project, we will:

  • Step 1: Provision the required lab environment.
  • Step 2: Provision the load balancer.
  • Step 3: Output subnet IDs and load balancer's frontend IP.
  • Step 4: Configure the tfstate file remote storage.

Directions

Step 1: Provision the required lab environment

In this step, we will create:

  • a resource group,
  • a virtual network,
  • two subnets are frontend and backend,
  • a storage account,
  • two virtual machines in an availability set.

Step 2: Provision the load balancer

In this step, we will create the load balancer. In order to create the load balancer, we will need to create:

  • a frontend public IP,
  • a backend pool (our availability set),
  • a health probe for HTTP,
  • a load balancing rule for HTTP,
  • a health probe for HTTPS,
  • a load balancing rule for HTTPS.

Step 3: Output subnet IDs and load balancer's frontend IP

For this task, we will create an output file with the content subnet IDs and load balancer's frontend IP.

Step 4: Configure the tfstate file remote storage

For this step, we will use an already created resource group and an existing storage account with a container.

As last statement I share the sources that is used in the project.

Source from Terraform

Name Type
azurerm_availability_set.frontend script resource
azurerm_lb.frontend script resource
azurerm_lb_backend_address_pool.frontend script resource
azurerm_lb_probe.port443 script resource
azurerm_lb_probe.port80 script resource
azurerm_lb_rule.port443 script resource
azurerm_lb_rule.port80 script resource
azurerm_network_interface.frontend script resource
azurerm_network_interface_backend_address_pool_association.ba_association script resource
azurerm_public_ip.frontend script resource
azurerm_resource_group.terraform_sample script resource
azurerm_storage_account.frontend script resource
azurerm_storage_container.frontend script resource
azurerm_subnet.my_subnet_backend script resource
azurerm_subnet.my_subnet_dmz script resource
azurerm_subnet.my_subnet_frontend script resource
azurerm_virtual_machine.frontend script resource

trfm_azure2_lb_aset's People

Contributors

semabayrak01 avatar

Watchers

 avatar

trfm_azure2_lb_aset's Issues

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.