Skip to content

evry-ace/azure-iac-demo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Azure Infrastructure as Code Demo

Infrastructure as Code Demonstration for Azure.

Tools Overview

  • Terraform
  • Azure Container Instance
  • Azure Storage Accounts
  • Azure CosmosDB

Prerequsite

  • Azure Subscription

Setup

Variables Description
ARM_CLIENT_ID Azure Service Principal ID
ARM_CLIENT_SECRET Azure Service Principal Secret
ARM_SUBSCRIPTION_ID Azure Subscription ID
ARM_TENANT_ID Azure Tenant ID
TF_VAR_resource_group Azure Resource Group Name

Install and set up the Azure CLI.

az login
az account set --subscription="$ARM_SUBSCRIPTION_ID"

Create a new resource group

az group create --name azure-iac-demo --location westeurope

Create a new Service Principal

az ad sp create-for-rbac \
  --name http://$TF_VAR_resource_group \
  --role contributor \
  --scopes /subscriptions/$ARM_SUBSCRIPTION_ID/resourceGroups/$TF_VAR_resource_group

Reference

About

Infrastructure as Code Demonstration for Azure

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published