azure-service-connections

ntaksh42's avatarfrom ntaksh42

Configure Azure DevOps service connections for deployments. Use when setting up cloud service integrations or deployment credentials.

⭐0stars🔀1forks📁View on GitHub🕐Updated Dec 20, 2025

When & Why to Use This Skill

This Claude skill streamlines the management of Azure DevOps service connections, enabling secure and automated integration between CI/CD pipelines and external services. It provides comprehensive guidance for configuring Azure Resource Manager, GitHub, Docker Hub, and Kubernetes connections, ensuring seamless deployment workflows and robust credential management for cloud infrastructure.

Use Cases

  • Automating Azure Resource Manager (ARM) service principal creation to grant pipelines secure access to Azure subscriptions.
  • Integrating GitHub repositories with Azure DevOps to enable automated build triggers and source code synchronization.
  • Configuring Docker Registry service connections to facilitate the pushing and pulling of container images during CI/CD cycles.
  • Setting up Kubernetes service connections for automated application deployment and management within AKS clusters.
  • Standardizing deployment credentials across multiple environments to improve security and reduce manual configuration errors.
nameazure-service-connections
descriptionConfigure Azure DevOps service connections for deployments. Use when setting up cloud service integrations or deployment credentials.

Azure Service Connections Skill

Azure DevOpsサービス接続を管理するスキルです。

主な機能

  • Azure接続: Azure Resource Manager
  • GitHub接続: リポジトリ連携
  • Docker Hub: コンテナレジストリ
  • Kubernetes: AKSクラスター

Azure Resource Manager接続

サービスプリンシパル作成

# サービスプリンシパル作成
az ad sp create-for-rbac \
  --name "azure-devops-sp" \
  --role contributor \
  --scopes /subscriptions/{subscription-id}

# 出力
{
  "appId": "xxx",
  "displayName": "azure-devops-sp",
  "password": "yyy",
  "tenant": "zzz"
}

Pipeline設定

resources:
  - type: ServiceConnection
    name: Azure-Production
    serviceConnection: 'Azure-Prod-Connection'

steps:
  - task: AzureCLI@2
    inputs:
      azureSubscription: 'Azure-Prod-Connection'
      scriptType: 'bash'
      scriptLocation: 'inlineScript'
      inlineScript: |
        az group list

GitHub接続

resources:
  repositories:
    - repository: source-repo
      type: github
      endpoint: GitHub-Connection
      name: myorg/myrepo

trigger:
  - main

pool:
  vmImage: 'ubuntu-latest'

steps:
  - checkout: source-repo
  - script: echo "Building from GitHub"

Docker Registry

resources:
  containers:
    - container: build-container
      image: myregistry.azurecr.io/build:latest
      endpoint: Docker-Registry-Connection

steps:
  - script: |
      docker build -t myapp:$(Build.BuildId) .
      docker push myapp:$(Build.BuildId)

バージョン情報

  • Version: 1.0.0