Skip to content

Commit

Permalink
Update README.md
Browse files Browse the repository at this point in the history
josema88 authored Apr 27, 2019
1 parent 5590ea7 commit ac62268
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -65,6 +65,18 @@ These pipeline variables will be used in order to parametrize names for some res

By default, Terraform stores state locally in a file named terraform.tfstate. When working with Terraform in a team, use of a local file makes Terraform usage complicated. With remote state, Terraform writes the state data to a remote data store. For this sample we will use a Terraform CLI task that allows to create an Azure storage account and storage container to store Terraform state if this not exists yet. For more information on Terraform remote state click [here](https://www.terraform.io/docs/state/remote.html)

### Terraform Cycle
When running Terraform in automation, the focus is usually on the core plan/apply cycle. The main Terraform workflow is the following:
![TFcycle](https://github.com/josema88/IaCWithAzure/blob/master/Images/terraformworkflow.png)

i. Initialize the Terraform working directory.

ii. Produce a plan for changing resources to match the current configuration.

iii. Apply the changes described by the plan.

The following tasks will allow you to implement the terraform cycle.

### Add Task - Terraform Init
First you should install the extension in order to use the terraform task, select the extension created by Charles Zipp.
![AzDevops14](https://github.com/josema88/IaCWithAzure/blob/master/Images/AzDevOps14.png)

0 comments on commit ac62268

Please sign in to comment.