شعار Azure Pipelines Yaml And Multi Stage

Azure Pipelines Yaml And Multi Stage

المجتمع
selvarajmurugesan90
azure-pipelines-yaml-and-multi-stage

Designs Azure Pipelines YAML (azure-pipelines.yml), multi-stage pipelines with environments/approvals, templates for reuse across repos, and self-hosted vs. Microsoft-hosted agent pools. Use when the user asks to "set up Azure Pipelines," "write an azure-pipelines.yml," "add a multi-stage pipeline with approvals," "create a reusable pipeline template," "configure a self-hosted agent pool," or "troubleshoot a stuck/failed Azure DevOps pipeline run."

Add to TypingMind

نظرة عامة

الناشرselvarajmurugesan90
المستودعops-engineering-skills
اسم المهارةazure-pipelines-yaml-and-multi-stage
النجوم
44
التفريعات
18
الملفات المرفقة
تعليمات فقط
الترخيصApache-2.0
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها selvarajmurugesan90 على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Azure Pipelines Yaml And Multi Stage في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/selvarajmurugesan90/ops-engineering-skills/tree/main/plugins/cicd-tooling/skills/azure-pipelines-yaml-and-multi-stage
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/selvarajmurugesan90/ops-engineering-skills.git /tmp/ops-engineering-skills
mkdir -p .claude/skills
cp -r /tmp/ops-engineering-skills/plugins/cicd-tooling/skills/azure-pipelines-yaml-and-multi-stage .claude/skills/azure-pipelines-yaml-and-multi-stage
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Azure Pipelines Yaml And Multi Stage في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Azure Pipelines Yaml And Multi Stage تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Azure Pipelines Yaml And Multi Stage بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Azure Pipelines YAML and Multi-Stage Design

Purpose

Azure Pipelines (part of Azure DevOps) runs pipelines defined in azure-pipelines.yml as a sequence of stages, each containing jobs, each containing steps — with environments providing approval gates and deployment history between stages, and templates providing the reuse mechanism equivalent to GitHub Actions' reusable workflows or GitLab's include:. This skill covers Azure Pipelines' specific YAML schema, environment/approval mechanics, and template reuse — not the generic pipeline-design concepts covered in ci-cd-pipeline-design, which apply here too but aren't repeated.

When to use

  • Standing up a new pipeline for a repo hosted in Azure Repos, GitHub, or Bitbucket that needs to build/test/deploy through Azure DevOps.
  • Designing a multi-stage pipeline (e.g. Build → Dev → Staging → Production) with approval gates and deployment history tracked per environment.
  • Extracting a shared pipeline template so multiple repos consume one canonical build/deploy definition instead of copy-pasting YAML.
  • Choosing between Microsoft-hosted agents (fast to start, ephemeral, cost per minute) and self-hosted agent pools (persistent, custom tooling, network access to private resources).
  • Diagnosing a pipeline run stuck at a specific stage/job, a template parameter not resolving as expected, or an approval gate that isn't notifying the right approvers.

Prerequisites & environment

  • An Azure DevOps organization and project, with a service connection configured for any external target (Azure subscription, Kubernetes cluster, container registry) the pipeline deploys to.
  • Pipeline permissions: the pipeline's identity (or the service connection it uses) needs least-privilege access to only the resources it deploys to — not subscription-Owner-level access "to make it work."
  • For self-hosted agents: a registered agent pool with agents that have network access to any private resources (internal artifact feeds, on-prem systems) the Microsoft-hosted pool can't reach.
  • Environments (Pipelines → Environments) created ahead of time if you want approval gates and deployment history — a stage's deployment job references an environment by name, and the environment must exist (and have its approval checks configured) before the first run.

Step-by-step guidance

  1. Structure the pipeline as stages of jobs, mirroring how CodePipeline models stages of actions and GitHub Actions models a workflow's jobs:

    yaml
    # azure-pipelines.yml
    trigger:
      branches:
        include: [main]
    
    pool:
      vmImage: ubuntu-latest
    
    stages:
      - stage: Build
        jobs:
          - job: BuildAndTest
            steps:
              - script: npm ci && npm test
                displayName: "Install and test"
              - script: npm run build
                displayName: "Build"
              - publish: dist
                artifact: app-dist
    
      - stage: DeployStaging
        dependsOn: Build
        jobs:
          - deployment: DeployToStaging
            environment: "checkout-api-staging"
            strategy:
              runOnce:
                deploy:
                  steps:
                    - download: current
                      artifact: app-dist
                    - script: ./deploy.sh staging
                      displayName: "Deploy to staging"
    
      - stage: DeployProduction
        dependsOn: DeployStaging
        jobs:
          - deployment: DeployToProduction
            environment: "checkout-api-production"
            strategy:
              runOnce:
                deploy:
                  steps:
                    - download: current
                      artifact: app-dist
                    - script: ./deploy.sh production
                      displayName: "Deploy to production"

    The deployment job type (vs. a plain job) is what unlocks environment-linked approval gates and deployment history — a plain job deploying via script has neither.

  2. Configure the approval gate on the environment itself, not in the YAML — in Azure DevOps, go to Pipelines → Environments → checkout-api-production → Approvals and checks, add the required approvers. This is Azure Pipelines' equivalent of a GitHub Actions protected environment: reviewer list or a GitLab when: manual job; the YAML only references the environment name, the gate configuration lives on the environment resource.

  3. Extract shared logic into a template once two or more pipelines duplicate the same stage/job/steps:

    yaml
    # templates/build-and-test.yml
    parameters:
      - name: nodeVersion
        type: string
        default: "20.x"
    
    steps:
      - task: NodeTool@0
        inputs:
          versionSpec: ${{ parameters.nodeVersion }}
      - script: npm ci && npm test
    yaml
    # consuming pipeline
    steps:
      - template: templates/build-and-test.yml
        parameters:
          nodeVersion: "18.x"

    Templates can live in the same repo or a separate shared repo referenced via a resources.repositories block, mirroring github-actions-centralized-reusable-workflows's centralized-repo pattern.

  4. Pin template and task versions explicitly in a shared/centralized setup — resources.repositories supports a ref (branch/tag), and marketplace tasks are versioned (NodeTool@0); an unpinned ref: main on a shared templates repo means every consumer's next run picks up whatever the templates repo's main branch currently contains, silently, with no PR to review.

  5. Choose Microsoft-hosted vs. self-hosted agents deliberately: Microsoft-hosted (pool: vmImage: ubuntu-latest) requires no maintenance and starts fresh every run, but can't reach private network resources and has a per-minute cost past the free tier; self-hosted (pool: name: my-agent-pool) has persistent state (faster for large dependency caches) and network access to internal systems, but the org is responsible for patching and securing the agent host itself.

  6. Diagnose a stuck or failed run by opening the specific stage/job's log, not just the pipeline summary — a deployment job's approval step shows as "Waiting" until approved/rejected (check the environment's pending approvals), and a failed step's raw log (##[error] lines) has the actual command/exit-code detail the pipeline-level red/green status doesn't surface.

Best practices

  • Use deployment jobs with named environments for anything that should have an approval gate and a deployment history — a plain job running a deploy script has neither, and there's no audit trail of who deployed what, when.
  • Keep environment approval lists current as team membership changes; an approval gate whose only approver left the team blocks every future deployment until someone notices and fixes the check.
  • Pin resources.repositories template refs to a tag or commit for production-facing pipelines, not a floating branch — see the pitfall below.
  • Prefer parameterized templates over YAML anchors/copy-paste for shared logic — a template's parameters block is validated and documented, where copy-pasted YAML across pipelines silently drifts.
  • Scope service connections narrowly (one per target environment/ subscription, least-privilege role) rather than one broad connection reused across dev/staging/production — a compromised or misconfigured pipeline run should not be able to reach production through a connection meant for dev.

Common pitfalls

  • Symptom: A shared templates repo's main branch changes, and every consuming pipeline's next run silently behaves differently — no PR, no changelog, just a different result. Fix: Pin resources.repositories.ref to a specific tag or commit SHA for anything production-facing; treat the templates repo like any other versioned dependency, not a live-editable shared file.

  • Symptom: A deployment job's approval step sits in "Waiting" indefinitely and nobody notices until someone asks why the release hasn't gone out. Fix: Configure the environment's approval notification (email/ Teams/Slack via a service hook) so pending approvals are actively surfaced, not just visible if someone happens to check the Environments page.

  • Symptom: A pipeline works fine on Microsoft-hosted agents in dev but fails to reach an internal artifact feed or database in staging/ production. Fix: That target requires self-hosted agents with network access to the private resource — Microsoft-hosted agents run in Azure's shared pool with no route to on-prem or VPC-internal systems unless exposed publicly (which is its own security tradeoff to weigh deliberately).

  • Symptom: A service connection was granted subscription-level Contributor/Owner "so the pipeline could deploy anything," and a bug in one pipeline's YAML deletes or modifies resources far outside what that pipeline should touch. Fix: Scope service connections to a specific resource group (or narrower) with only the roles the pipeline's actual deploy steps need — treat an overly broad service connection as a security finding.

Worked example

Scenario: checkout-api builds once, then deploys through staging and production with a required approval before production, using named environments for the audit trail.

yaml
# azure-pipelines.yml
trigger:
  branches:
    include: [main]

pool:
  vmImage: ubuntu-latest

stages:
  - stage: Build
    jobs:
      - job: BuildAndTest
        steps:
          - template: templates/build-and-test.yml
            parameters:
              nodeVersion: "20.x"
          - publish: dist
            artifact: app-dist

  - stage: DeployStaging
    dependsOn: Build
    jobs:
      - deployment: ToStaging
        environment: "checkout-api-staging"
        strategy:
          runOnce:
            deploy:
              steps:
                - download: current
                  artifact: app-dist
                - script: ./deploy.sh staging

  - stage: DeployProduction
    dependsOn: DeployStaging
    jobs:
      - deployment: ToProduction
        environment: "checkout-api-production"   # approval check configured on this environment
        strategy:
          runOnce:
            deploy:
              steps:
                - download: current
                  artifact: app-dist
                - script: ./deploy.sh production

The checkout-api-production environment has an approval check configured (release manager + on-call lead, either can approve) in Pipelines → Environments, so DeployProduction pauses and notifies both approvers via the configured Teams service hook; the environment's deployment history then shows exactly which run deployed to production, when, and who approved it.

Cross-references

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Azure Pipelines Yaml And Multi Stage؟

Designs Azure Pipelines YAML (azure-pipelines.yml), multi-stage pipelines with environments/approvals, templates for reuse across repos, and self-hosted vs. Microsoft-hosted agent pools. Use when the user asks to "set up Azure Pipelines," "write an azure-pipelines.yml," "add a multi-stage pipeline with approvals," "create a reusable pipeline template," "configure a self-hosted agent pool," or "troubleshoot a stuck/failed Azure DevOps pipeline run."

لماذا تستخدم Azure Pipelines Yaml And Multi Stage على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Azure Pipelines Yaml And Multi Stage عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Azure Pipelines Yaml And Multi Stage في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/selvarajmurugesan90/ops-engineering-skills/tree/main/plugins/cicd-tooling/skills/azure-pipelines-yaml-and-multi-stage. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Azure Pipelines Yaml And Multi Stage؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Azure Pipelines Yaml And Multi Stage؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Azure Pipelines Yaml And Multi Stage معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Azure Pipelines Yaml And Multi Stage مجانية؟

نعم. نشرها selvarajmurugesan90 على GitHub بموجب ترخيص Apache-2.0. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل
شعار affaan-m

Deployment Patterns

affaan-m
المجتمعشائع

سير عمل النشر، وأنماط مسارات CI/CD، واستخدام Docker في الحاويات، وفحوصات الصحة، واستراتيجيات التراجع، وقوائم التحقق من الجاهزية للإنتاج لتطبيقات الويب…

39.1K
261.1K
التعليمات
عرض
شعار affaan-m

Docker Patterns

affaan-m
المجتمعشائع

أنماط Docker وDocker Compose للتطوير المحلي، وأمان الحاويات، والشبكات، واستراتيجيات وحدات التخزين، وتنسيق الخدمات المتعددة.

39.1K
261.1K
التعليمات
عرض
شعار affaan-m

Architecture Decision Records

affaan-m
المجتمعشائع

سجّل قرارات البنية المعمارية أثناء جلسات البرمجة في سجلات ADR منظمة، مع اكتشاف لحظات اتخاذ القرار تلقائيًا وتوثيق السياق والبدائل التي جرى النظر فيها والمبررات. حافظ على سجل ADR يساعد المطورين مستقبلًا على فهم أسباب تشكيل قاعدة الشيفرة على نحوها الحالي.

39.1K
261.1K
التعليمات
عرض
شعار affaan-m

Automation Audit Ops

affaan-m
المجتمعشائع

سير عمل لإعداد جرد آلي قائم على الأدلة وتدقيق التداخلات لصالح ECC. استخدمه عندما يريد المستخدم معرفة المهام أو الخطافات أو الموصلات أو خوادم MCP أو الأغلفة النشطة أو المعطلة أو المكررة أو المفقودة قبل إجراء الإصلاحات.

39.1K
261.1K
التعليمات
عرض

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇