GitHub Actions workflow to Azure DevOps pipeline
17:53 13 Nov 2026

I am currently working on migrating a project from GitHub Actions to Azure DevOps. I can't see anything that has rough parity with what the provided workflow YAML file shows:

jobs:
  deploy:
    runs-on: ubuntu-latest
    environment: ${{ inputs.environment }}
    permissions:
      contents: read
    steps:
      - uses: actions/checkout@v4

      - uses: pnpm/action-setup@v4
        with:
          version: 10.10.0

      - uses: actions/setup-node@v4
        with:
          node-version: "20.19"
          cache: pnpm

      - run: pnpm install --frozen-lockfile
      - run: pnpm typecheck
      - run: pnpm test
      - run: pnpm lint
      - run: pnpm build
      - run: pnpm audit:ci

      - uses: azure/login@v2
        with:
          creds: ${{ secrets.AZURE_CREDENTIALS }}

      - name: Build and push API image
        id: image
        shell: bash
        run: |
          set -euo pipefail
          TAG="${{ inputs.imageTag }}"
          if [ -z "$TAG" ]; then
            TAG="${GITHUB_SHA::12}"
          fi

          LOGIN_SERVER="$(az acr show --name '${{ inputs.acrName }}' --query loginServer --output tsv)"
          IMAGE="$LOGIN_SERVER/fi-api:$TAG"

          az acr login --name '${{ inputs.acrName }}'
          docker build -f apps/api/Dockerfile -t "$IMAGE" .
          docker push "$IMAGE"

          echo "image=$IMAGE" >> "$GITHUB_OUTPUT"

      - name: Update Container App
        run: |
          az containerapp update \
            --name '${{ inputs.containerAppName }}' \
            --resource-group '${{ inputs.resourceGroup }}' \
            --image '${{ steps.image.outputs.image }}'

      - name: Verify deployed API
        shell: bash
        run: |
          set -euo pipefail
          FQDN="$(az containerapp show \
            --name '${{ inputs.containerAppName }}' \
            --resource-group '${{ inputs.resourceGroup }}' \
            --query properties.configuration.ingress.fqdn \
            --output tsv)"
          for attempt in {1..12}; do
            if curl --fail --silent --show-error --max-time 15 "https://$FQDN/health"; then
              echo
              echo "API healthy at https://$FQDN"
              exit 0
            fi
            sleep 10
          done
          echo "API health check failed after deployment" >&2
          exit 1

I've done a great deal of searching on "GitHub to Azure DevOps" conversions, but search results tend to give me the opposite direction. From what I could garner, it's still going to be a "starter pipeline" as per the DevOps wizard.

Is there an easier way to do this?

azure-pipelines github-actions