Skip to content

Commit 6ebd7a3

Browse files
authored
Configure Terraform OIDC token refresh (#71)
1 parent bf8d07f commit 6ebd7a3

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

scripts/azure-devops/set_terraform_azurerm_vars.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -70,6 +70,7 @@ if ($RequestNewToken -and !$env:servicePrincipalKey) {
7070

7171
$env:ARM_CLIENT_ID ??= $account.user.name
7272
$env:ARM_CLIENT_SECRET ??= $env:servicePrincipalKey # requires addSpnToEnvironment: true
73+
$env:ARM_OIDC_AZURE_SERVICE_CONNECTION_ID ??= $env:AZURESUBSCRIPTION_SERVICE_CONNECTION_ID
7374
$env:ARM_OIDC_TOKEN = $idToken
7475
$env:ARM_SUBSCRIPTION_ID ??= $account.id
7576
$env:ARM_TENANT_ID ??= $account.tenantId

0 commit comments

Comments
 (0)