Skip to content

Latest commit

 

History

History
39 lines (27 loc) · 606 Bytes

README.md

File metadata and controls

39 lines (27 loc) · 606 Bytes

Terraform Azure

🧑‍💻 WIP

Tools

https://www.runatlantis.io/

Azure Auth 🔑

login and create service principal app

az login

az account set --subscription "👾"

az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/👾"

SP creation output:

{
  "appId": "",
  "displayName": "",
  "password": "",
  "tenant": ""
}

create a .env file map the values on it:

export ARM_CLIENT_ID="<APPID_VALUE>"
export ARM_CLIENT_SECRET="<PASSWORD_VALUE>"
export ARM_SUBSCRIPTION_ID="<SUBSCRIPTION_ID>"
export ARM_TENANT_ID="<TENANT_VALUE>"