Skip to content
This repository was archived by the owner on Jan 21, 2026. It is now read-only.

Commit 03e098f

Browse files
authored
Merge pull request #237 from rob-foulkrod/updateslab15
M06-LAB15: Issue with pattern matching on replace token step
2 parents 922af5c + 91ae6a4 commit 03e098f

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

Instructions/Labs/AZ400_M06_Automating_infrastructure_deployments_in_the_Cloud_with_Terraform.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ In this task, you will create Azure resources using Terraform as part of your de
166166
167167
> **Note**: To configure the Terraform [backend](https://www.terraform.io/docs/backends/), we need the access key to the Azure Storage account hosting the Terraform state. In this case, we are using Azure PowerShell task to retrieve the access key of the Azure Storage account provisioned in the previous task. By using `Write-Host "##vso[task.setvariable variable=storagekey]$key"` we are creating a pipeline variable that we will be able to use on later tasks.
168168
169-
1. In the list of tasks of the **Dev** stage, select the **Replace tokens in Terraform file** task.
169+
1. In the list of tasks of the **Dev** stage, select the **Replace tokens in Terraform file** task. Update the **Token Pattern** property of the task to be `__...__` to match the tokens in the **webapp.tf** file.
170170
171171
> **Note**: If you carefully reviewed the **webapp.tf** file, you should have noticed a few values suffixed and prefixed with **__**, such as `__terraformstorageaccount__`. The **Replace Tokens** task will replace those values with the variable values defined in the release pipeline.
172172

0 commit comments

Comments
 (0)