Skip to content

Commit 3d56c63

Browse files
committed
Update azure-pipelines.yml for Azure Pipelines [skip ci]
Using variable group from Key Vault
1 parent 421ef73 commit 3d56c63

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

azure-pipelines.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ pool:
55
#Your build pipeline references a secret variable named ‘sp_tenantid’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it secret. See https://go.microsoft.com/fwlink/?linkid=865972
66
#Your build pipeline references a secret variable named ‘subscription_id’. Create or edit the build pipeline for this YAML file, define the variable on the Variables tab, and then select the option to make it secret. See https://go.microsoft.com/fwlink/?linkid=865972
77

8+
variables:
9+
- group: AzureKeyVaultSecrets
10+
811
steps:
912
- task: UsePythonVersion@0
1013
inputs:
@@ -19,7 +22,7 @@ steps:
1922
workingDirectory: 'environment_setup'
2023

2124
- script: |
22-
az login --service-principal -u $(sp_username) -p $(sp_password) --tenant $(sp_tenantid)
25+
az login --service-principal -u $(spidentity) -p $(spsecret) --tenant $(sptenant)
2326
2427
displayName: 'Login to Azure'
2528

0 commit comments

Comments
 (0)