Terraform in Azure
Terraform in Azure
Recap to Terraform
Terraform Installation
Tried official installation instructions but faced some dependency issue on my machine so ended up installing using the brew recipe
1
brew install terraform
Getting Started
- Set up a Cloud Account on any cloud provider (AWS, Azure, OCI)
- Install Terraform
- Add a provider – AWS, Azure, OCI, GCP, or others
- Write configuration files
- Initialize Terraform Providers
- PLAN (DRY RUN) using terraform plan
- APPLY (Create a Resource) using terraform apply
- DESTROY (Delete a Resource) using terraform destroy
Terraform Providers
Teraform Configuration Files
Importing Existing Infrastructure
Terraform Stages
Commands
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
$ mkdir learn-terraform-azure
$ cd learn-terraform-azure
## Code in the Terraform File
## Az login in between with the correct subscription selected activated
$ terraform init
$ terraform fmt
$ terraform plan
$ terraform apply
Resource :
This post is licensed under CC BY 4.0 by the author.