Skip to content

ahmar-husain/terraform-azure-provisioning

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

23 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Provison Reources

Terraform and git workflows are the most common way to automate provisoning of infrastructure on azure

Create Service Principal

Service principal will be used by terraform to login in azure and run the commands

az login
az account set --subscription=<subscrition id>
az ad sp create-for-rbac -n "api://<name of your choice>" --role "Contributor" --scopes "/subscriptions/<subscrition id>"

Output

{
  "appId": "bogus-bogus-4627-9010-bogus",  --Client id
  "displayName": "ahmarhusain",
  "name": "api://ahmarhusain",
  "password": "bogus.lAux7u-bogus", -- Client secret
  "tenant": "bogus-fa1a-bogus-9cf1-bogus"  -- Teanat id
}

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • HCL 100.0%