Skip to content

Commit f88b6f5

Browse files
committed
Fix self hosted variable
1 parent 6ad7fdf commit f88b6f5

File tree

3 files changed

+6
-4
lines changed

3 files changed

+6
-4
lines changed

alz/azuredevops/pipelines/terraform/templates/cd.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ stages:
88
displayName: Plan
99
variables:
1010
- group: ${variable_group_name}
11+
- name: 'selfHostedAgent'
12+
value: '${self_hosted_agent}'
1113
jobs:
1214
- deployment: plan
1315
displayName: Plan with Terraform
@@ -60,6 +62,8 @@ stages:
6062
dependsOn: plan
6163
variables:
6264
- group: ${variable_group_name}
65+
- name: 'selfHostedAgent'
66+
value: '${self_hosted_agent}'
6367
jobs:
6468
- deployment: apply
6569
displayName: Apply with Terraform

alz/azuredevops/pipelines/terraform/templates/ci.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ stages:
44
displayName: Validation Terraform
55
variables:
66
- group: ${variable_group_name}
7+
- name: 'selfHostedAgent'
8+
value: '${self_hosted_agent}'
79
jobs:
810
- job: validate
911
displayName: Validate Terraform

alz/azuredevops/pipelines/terraform/templates/helpers/terraform-block-msi-endpoint.yaml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,4 @@
11
---
2-
variables:
3-
- name: 'selfHostedAgent'
4-
value: '${self_hosted_agent}'
5-
62
steps:
73
# This hack allows MSI to be tried for authentication. As setting the CLIENT_ID causes AzAPI to check MSI auth prior to CLI auth and it fails on Microsoft Hosted agents.
84
# This only works on Linux based runners

0 commit comments

Comments
 (0)