Skip to content

mosowaz/AZURE-Terraform-projects

Repository files navigation

AZURE-Terraform-projects

This repository is created to demonstrate the implementation of Azure resources with Terraform code and automation tool with azure-pipelines. Links to scenerios and details can be found in each sub-directory of this repository (under Contents).

Prerequisites

  1. azure CLI is required for terraform to interact with azure resources For detailed explanation to install and login with azure cli https://learn.microsoft.com/en-us/cli/azure/install-azure-cli
  2. Install and configure terraform https://developer.hashicorp.com/terraform/install

Contents

Project-1 - Connect virtual networks with virtual network peering Build Status

Project-2 - Create and associate service endpoint policies Build Status

Project-3 - Restrict network access to PaaS resources with virtual network service endpoints

Project-4 - Create public and private load balancers with Virtual Machine Scale Set as the backend pool Build Status

Terraform Commands

terraform init -upgrade

terraform fmt && terraform validate

terraform plan -out main.tfplan

terraform apply main.tfplan       # or terraform apply --auto-approve

To verify list of resources created, and details of resources

terraform state list

terraform state show <resource>   # detailed list on the resource

Clean up resources

terraform plan -destroy -out main.destroy.tfplan  

terraform apply main.destroy.tfplan       # or terraform destroy

Other helpful commands

terraform -install-autocomplete   # for autocompletion

About

Utilizing terraform to build Azure infrastructure and modules, focusing on az-104 and az-305.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •