File tree 2 files changed +6
-12
lines changed
.azure-pipelines-templates
2 files changed +6
-12
lines changed Original file line number Diff line number Diff line change 2
2
- script : |
3
3
set -ex
4
4
curl -sL https://aka.ms/InstallAzureCLIDeb | sudo bash
5
- # After the extension being in public preview, we can install the latest version automatically
6
- # by `az extension update --name confcom`.
7
- # But for now we need to manually manage the version.
8
- az extension add --name confcom -y
9
- az login --service-principal -u ${{ parameters.app_id }} -p ${{ parameters.service_principal_password }} --tenant ${{ parameters.tenant }}
5
+ az login --identity -u "${{ parameters.managed_identity_id }}"
10
6
name: setup_azure_cli
11
7
displayName: "Install Azure CLI and login"
Original file line number Diff line number Diff line change 43
43
44
44
- template : azure_cli.yml
45
45
parameters :
46
- app_id : $(CCF_SNP_CI_APP_ID)
47
- service_principal_password : $(CCF_SNP_CI_SERVICE_PRINCIPAL_PASSWORD)
48
- tenant : $(CCF_SNP_CI_TENANT)
46
+ managed_identity_id : $(CCF_SNP_CI_MANAGED_IDENTITY_ID)
49
47
50
48
- script : |
51
49
set -ex
@@ -89,13 +87,15 @@ jobs:
89
87
- job : cleanup_aci
90
88
displayName : " Cleanup ACI"
91
89
pool :
92
- vmImage : ubuntu-20.04
90
+ name : ado-virtual-ccf-sub # For access to managed identity
93
91
dependsOn :
94
92
- generate_ssh_key
95
93
- deploy_primary_aci
96
94
- ${{ parameters.used_by }}
97
95
condition : always()
98
96
variables :
97
+ Codeql.SkipTaskAutoInjection : true
98
+ skipComponentGovernanceDetection : true
99
99
IpAddresses : $[ dependencies.deploy_primary_aci.outputs['deploy_primary_aci.ipAddresses'] ]
100
100
sshKey : $[ dependencies.generate_ssh_key.outputs['generate_ssh_key.sshKey'] ]
101
101
steps :
@@ -117,9 +117,7 @@ jobs:
117
117
118
118
- template : azure_cli.yml
119
119
parameters :
120
- app_id : $(CCF_SNP_CI_APP_ID)
121
- service_principal_password : $(CCF_SNP_CI_SERVICE_PRINCIPAL_PASSWORD)
122
- tenant : $(CCF_SNP_CI_TENANT)
120
+ managed_identity_id : $(CCF_SNP_CI_MANAGED_IDENTITY_ID)
123
121
124
122
- script : |
125
123
set -ex
You can’t perform that action at this time.
0 commit comments