azure-service-connections
Configure Azure DevOps service connections for deployments. Use when setting up cloud service integrations or deployment credentials.
When & Why to Use This Skill
This Claude skill streamlines the management and configuration of Azure DevOps service connections, essential for building robust CI/CD pipelines. It enables seamless and secure integration between Azure DevOps and external services such as Azure Resource Manager, GitHub, Docker Hub, and Kubernetes, ensuring automated deployment workflows are efficient and credential-ready.
Use Cases
- Automating Azure Resource Manager connections: Quickly set up Service Principals with RBAC for secure, automated cloud deployments.
- GitHub Repository Integration: Connecting source code repositories to Azure DevOps pipelines for automated builds and continuous integration.
- Container Registry Configuration: Establishing Docker Hub or Azure Container Registry connections to automate image pushing and pulling during the build process.
- Kubernetes Cluster Orchestration: Configuring service connections for AKS or other Kubernetes environments to facilitate automated application deployment and management.
| name | azure-service-connections |
|---|---|
| description | Configure 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