Skip to content

Latest commit

 

History

History
49 lines (42 loc) · 4 KB

12-prereq-ado-create-servicecon-import-ado-pipelines.md

File metadata and controls

49 lines (42 loc) · 4 KB

Azure Devops: Create service connection + Import IaC pipelines + Set service connection to pipeline steps

  • Purpose: Since only an Azure Devops admin have permission to create service connection and select that on a pipeline.
    • E.g. the AIFactory setup mentor will not have permission with role: Stakeholder
  • Role needed:: Azure Devops admin
  • Mandatory: Yes
  • TODO:
      1. Azure Devops: Create a service connection, based on the service principal esml-common-bicep-sp created in the Prerequsite, step 5
      • How-to: create a service connection
      1. Import Azure Devops pipelines, from the templates of the AIFactory, and set the service connection to each step in the pipeline
      • Step 1) Download templates from this ESML AIFactory GITHUB repo to your computer. There are 4 templates to download
      • Step 2) Import pipelines (all 5, but do it one by one)
        • Option A) Azure Devops
          • 2A) Create a dummy RELEASE pipeline. How-to: create clasic RELEASE pipeline
            • Purpose: The IMPORT button will not show otherwise in the UI
          • 2B) Import pipeline
            • See IMAGE
            • Browse for the files: Select one the the pipeline files to import, such as the esml-infra-common.json
        • Option B) Github Actions
          • TODO: soafara
      • Step 3) Select the service connection for each step in pipeline, and SAVE
        • 3A) Click the EDIT button, on the release pipeline
        • 3B) Click TASKS See IMAGE 2B - we need to fix the red markings.
        • 3C) Click Agent job See IMAGE 2C, and select Azure Pipelines, and windows-2019
        • 3D) Click the first step in the pipeline. This would be an Azure CLI type step called 11-Common RG and RBAC, if you selected the esml-infra-common.json
        • 3E) Select the Azure Resource Manager Connection (ARM Connection) you created earlier See IMAGE
        • Repeat this for all the steps in the pipeline
      • Repeat step 2-3 for all .json files from step 1

IMAGE - 2A - IMPORT PIPELINE

IMAGE - 2B - IMPORT PIPELINE

IMAGE - 2C - Select Agent