Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/will8ug/learn-terraform-azure
https://github.com/will8ug/learn-terraform-azure
Last synced: 1 day ago
JSON representation
- Host: GitHub
- URL: https://github.com/will8ug/learn-terraform-azure
- Owner: will8ug
- License: bsd-2-clause
- Created: 2024-01-16T09:58:20.000Z (10 months ago)
- Default Branch: main
- Last Pushed: 2024-07-09T13:00:43.000Z (4 months ago)
- Last Synced: 2024-07-10T16:28:29.810Z (4 months ago)
- Language: HCL
- Size: 12.7 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# learn-terraform-azure
[![Terraform](https://github.com/azure-pocs/learn-terraform-azure/actions/workflows/terraform.yml/badge.svg)](https://github.com/azure-pocs/learn-terraform-azure/actions/workflows/terraform.yml)
Practices of this guide: [Get Started - Azure](https://developer.hashicorp.com/terraform/tutorials/azure-get-started).
Relevant commands of this repository:
```shell
az login
az account set --subscription ""
az ad sp create-for-rbac --role="Contributor" --scopes="/subscriptions/"export ARM_CLIENT_ID=""
export ARM_CLIENT_SECRET=""
export ARM_SUBSCRIPTION_ID=""
export ARM_TENANT_ID=""terraform init
terraform fmt
terraform validateterraform apply
terraform show
terraform state list
terraform state
terraform state pull azurerm_resource_group.rgterraform destroy
terraform apply -var "resource_group_name=myNewResourceGroupName"
terraform output resource_group_id
#### Terraform Cloud ####
terraform login
terraform init```