- Setup and configure Azure CLI: https://learn.hashicorp.com/tutorials/terraform/install-cli?in=terraform/azure-get-started
- Setup Terraform CLI: https://learn.hashicorp.com/tutorials/terraform/install-cli
$ terraform init
$ terraform validate
$ terraform fmt
$ terraform plan
$ terraform apply
- Create eventhub, account storage and container
- Eventhub capture the message and store to account storage
- Install Terraform: use command line to run
choco install terraform
- Download directly and install: https://www.terraform.io/downloads.htm
- Install
Azure CLI
by run the command viaPowershell
:Invoke-WebRequest -Uri https://aka.ms/installazurecliwindows -OutFile .\AzureCLI.msi; Start-Process msiexec.exe -Wait -ArgumentList '/I AzureCLI.msi /quiet'; rm .\AzureCLI.msi
- Download and install directly: https://aka.ms/installazurecliwindows
Command | Description |
---|---|
terraform init | Automatically download and install community or partner modules from the registry |
terraform validate | Check the file wheather valid or not |
terraform plan | Preview the changes Terraform will make to match your configuration. |
terraform fmt | Reformat your configuration in the standard style and return the file name |
terraform apply | apply Create or update infrastructure |
terraform destroy | Destroy previously-created infrastructure |