@@ -149,7 +149,7 @@ steps:
149149 resourceType : roledefinition
150150 serviceConnection : $(ACN_TEST_SERVICE_CONNECTION)
151151 inputs :
152- roleDefinitionName : $(ACNCI_BUILDUSER_ROLE_NAME )
152+ roleDefinitionName : $(ACNCI_BUILDUSER_ROLEDEFINITION_NAME )
153153 roleDefinitionFileLocation : ./azure-container-networking/.pipelines/templates/mi-build-role.json
154154 subscriptionId : $(build.subscriptionId)
155155 buildTagDefinitionIdKey : $(ACNCI_BUILDTAG_DEFINITIONID)
@@ -161,8 +161,10 @@ steps:
161161 resourceType : roledefinition
162162 refreshAfterCreation : True
163163 inputs :
164- roleName : $(ACNCI_BUILDUSER_ROLE_NAME )
164+ roleDefinitionName : $(ACNCI_BUILDUSER_ROLEDEFINITION_NAME )
165165 roleDefinitionJson : $(OUT_RESULT)
166+ roleDefinitionFileLocation : ./azure-container-networking/.pipelines/templates/mi-build-role.json
167+ resourceGroupId : $(resourcegroups.ACNCI_BUILD_RESOURCEGROUP)
166168 subscriptionId : $(build.subscriptionId)
167169 buildTagDefinitionIdKey : $(ACNCI_BUILDTAG_DEFINITIONID)
168170 buildTagCreatedByAppIdKey : $(ACNCI_BUILDTAG_CREATEDBYAPPID)
@@ -183,7 +185,7 @@ steps:
183185 resourceType : roleassignments
184186 serviceConnection : $(ACN_TEST_SERVICE_CONNECTION)
185187 inputs :
186- roleName : $(ACNCI_BUILDUSER_ROLE_NAME )
188+ roleName : $(ACNCI_BUILDUSER_ROLEDEFINITION_NAME )
187189 managedIdentityObjectId : $(build.ACNCI_BUILD_SP_APP_OID)
188190 resourceGroupName : $(resourcegroups.ACNCI_BUILD_RESOURCEGROUP)
189191 buildTagDefinitionIdKey : $(ACNCI_BUILDTAG_DEFINITIONID)
@@ -194,7 +196,7 @@ steps:
194196 serviceConnection : $(ACN_TEST_SERVICE_CONNECTION)
195197 resourceType : roleassignments
196198 inputs :
197- roleName : $(ACNCI_BUILDUSER_ROLE_NAME )
199+ roleName : $(ACNCI_BUILDUSER_ROLEDEFINITION_NAME )
198200 managedIdentityObjectId : $(build.ACNCI_BUILD_SP_APP_OID)
199201 resourceGroupId : $(resourcegroups.ACNCI_BUILD_RESOURCEGROUP_ID)
200202 buildTagDefinitionIdKey : $(ACNCI_BUILDTAG_DEFINITIONID)
@@ -237,13 +239,6 @@ steps:
237239 lt(variables.OUT_RESULT_LENGTH, 1)))
238240 updateCondition : False
239241
240-
241- - template : get-storage-accounts.steps.yaml
242- parameters :
243- STORAGE_ACCOUNT_SERVICE_CONNECTION : $(ACN_TEST_SERVICE_CONNECTION)
244- condition : and(succeeded(), eq(variables.SA_LIST_LENGTH, 0))
245- resourceGroupName : $(resourcegroups.ACNCI_BUILD_RESOURCEGROUP)
246-
247242- task : AzureCLI@2
248243 name : artifact_storage
249244 displayName : " [Output] Storage Account Data"
0 commit comments