home / skills / ntaksh42 / agents / azure-release-pipeline

azure-release-pipeline skill

/.claude/skills/azure-release-pipeline

This skill helps you design Azure release pipelines with blue-green and rolling strategies, including approvals and rollback across environments.

npx playbooks add skill ntaksh42/agents --skill azure-release-pipeline

Review the files below or copy the command above to add this skill to your agents.

Files (1)
SKILL.md
2.0 KB
---
name: azure-release-pipeline
description: Design Azure release pipelines with deployment strategies and rollback. Use when creating release automation or deployment strategies.
---

# Azure Release Pipeline Skill

Azure Releaseパイプラインを構築するスキルです。

## 主な機能

- **環境管理**: Dev、Staging、Production
- **承認フロー**: 手動承認ゲート
- **デプロイ戦略**: Blue-Green、Rolling
- **ロールバック**: 自動・手動ロールバック

## Classic Release Pipeline (YAML代替)

```yaml
# 環境デプロイ with approvals
stages:
  - stage: Deploy_Staging
    jobs:
      - deployment: DeployStaging
        environment: Staging
        strategy:
          runOnce:
            deploy:
              steps:
                - task: AzureWebApp@1
                  inputs:
                    azureSubscription: 'Azure-Connection'
                    appName: 'myapp-staging'
                    package: '$(Pipeline.Workspace)/drop'

  - stage: Approval
    dependsOn: Deploy_Staging
    jobs:
      - job: WaitForValidation
        pool: server
        steps:
          - task: ManualValidation@0
            timeoutInMinutes: 1440
            inputs:
              notifyUsers: '[email protected]'
              instructions: 'Please validate staging and approve'

  - stage: Deploy_Production
    dependsOn: Approval
    jobs:
      - deployment: DeployProduction
        environment: Production
        strategy:
          runOnce:
            deploy:
              steps:
                - task: AzureWebApp@1
                  inputs:
                    azureSubscription: 'Azure-Connection'
                    appName: 'myapp-prod'
                    package: '$(Pipeline.Workspace)/drop'
```

## デプロイゲート

```yaml
# Time-based gate
gates:
  - task: InvokeRESTAPI@1
    inputs:
      connectionType: 'connectedServiceName'
      method: 'GET'
      urlSuffix: '/health'
      waitForCompletion: 'true'
      successCriteria: 'eq(root.status, "healthy")'
```

## バージョン情報
- Version: 1.0.0

Overview

This skill designs Azure release pipelines focused on safe, repeatable deployments and rollback strategies. It models environments like Dev, Staging, and Production, and includes approval gates, deployment strategies (blue-green, rolling), and rollback automation. The goal is to standardize release automation and minimize downtime during production changes.

How this skill works

The skill generates pipeline stages and jobs that deploy artifacts to environments, insert manual approval steps, and run health gates before promoting releases. It supports deployment strategies such as run-once, blue-green swap, and rolling updates, plus both automatic and manual rollback triggers. Health checks and REST-based gates can be used to validate environment readiness before continuing a release.

When to use it

  • Creating a multi-environment Azure release pipeline (Dev → Staging → Production)
  • Implementing manual approval gates or automated health checks before production deploys
  • Designing zero-downtime strategies like blue-green or rolling deployments
  • Adding automated or manual rollback mechanisms for production incidents
  • Standardizing release processes across teams and projects

Best practices

  • Model environments explicitly and separate credentials per environment
  • Use manual validation only where human judgment is required; prefer automated health gates for fast feedback
  • Implement deployment strategies suited to your app: blue-green for zero-downtime, rolling for stateful service updates
  • Configure clear timeout and notification settings for approval tasks to avoid stalled releases
  • Add smoke tests and REST/API health checks as gates to prevent bad promotions
  • Keep rollback artifacts and scripts versioned and easy to invoke from the pipeline

Example use cases

  • Staging deployment followed by manual approval and production promotion with health gates
  • Blue-green production swap to minimize downtime during major releases
  • Rolling update across nodes for stateful services with gradual traffic shift
  • Automated rollback when post-deploy health checks fail within a defined window
  • Pipeline template reuse to enforce consistent deployment strategy across teams

FAQ

Does this skill support YAML pipelines?

Yes. It is designed to produce YAML-compatible stages and jobs for Azure Pipelines, including deployment strategies and gate tasks.

How are rollbacks triggered?

Rollbacks can be automatic, triggered by failed health checks or gate criteria, or manual via a rollback job that operators invoke from the pipeline.