azd-deployment
Fungsinya
Tool ini membantu menyiapkan dan memverifikasi deployment aplikasi berbasis container ke Azure. Tool ini menggunakan file konfigurasi untuk mendefinisikan cara aplikasi Anda di-deploy dan memastikan semuanya siap sebelum perubahan dilakukan.
Kapan dipakai
- โSaat Anda ingin men-deploy aplikasi frontend dan backend ke Azure Container Apps.
- โSaat Anda perlu membangun image aplikasi secara remote di Azure.
- โSaat Anda ingin mengatur izin akses (managed identity) untuk aplikasi Anda.
Link skill
https://github.com/sickn33/agentic-awesome-skills/blob/main/plugins/agentic-awesome-skills-claude/skills/azd-deployment/SKILL.mdSalin lalu tempelkan ke AI Anda (Claude, ChatGPT, atau Cursor) dan minta AI mengikuti instruksinya.
Cara pakai
Cara paling mudah: salin pesan ini dan tempelkan ke AI Anda. AI akan membaca skill dan mengikuti instruksinya.
Pesan siap tempel
Untuk Claude Code, Codex, atau Cursor: jalankan di folder proyek, lalu skill langsung terpasang.
Unduh SKILL.md lalu taruh di folder skill agen Anda.
Contoh permintaan ke AI
โSaya ingin men-deploy web app saya beserta backend-nya ke Azure Container Apps, menggunakan Bicep untuk infrastruktur dan membangun image secara remote.โ
5 skill baru setiap minggu. 1 menit baca.
Cara kerjanya
Anda mengonfigurasi file bernama azure.yaml untuk mendeskripsikan aplikasi dan cara men-deploy-nya. Setelah itu, Anda menggunakan perintah seperti 'azd up' untuk menyiapkan dan men-deploy semuanya ke Azure.
Konten teknis (SKILL.md asli)
Teks asli dari pembuat, dalam bahasa Inggris, langsung dari GitHub.
Azure Developer CLI (azd) Container Apps Deployment
Deploy containerized frontend + backend applications to Azure Container Apps with remote builds, managed identity, and idempotent infrastructure.
Authorization and preparation
Inspect existing project files and the active tenant, subscription and environment first. Provisioning, deployment, role assignments and hook execution change cloud resources and may incur costs. Prepare the exact diff, target, estimated impact and rollback plan; execute only when the user explicitly authorizes that deployment. Do not print environment values or credentials into shared logs.
Quick Start
# Initialize and deploy
azd auth login
azd init # Creates azure.yaml and .azure/ folder
azd env new <env-name> # Create environment (dev, staging, prod)
azd up # Provision infra + build + deploy
Core File Structure
project/
โโโ azure.yaml # azd service definitions + hooks
โโโ infra/
โ โโโ main.bicep # Root infrastructure module
โ โโโ main.parameters.json # Parameter injection from env vars
โ โโโ modules/
โ โโโ container-apps-environment.bicep
โ โโโ container-app.bicep
โโโ .azure/
โ โโโ config.json # Default environment pointer
โ โโโ <env-name>/
โ โโโ .env # Environment-specific values (azd-managed)
โ โโโ config.json # Environment metadata
โโโ src/
โโโ frontend/Dockerfile
โโโ backend/Dockerfile
azure.yaml Configuration
Minimal Configuration
name: azd-deployment
services:
backend:
project: ./src/backend
language: python
host: containerapp
docker:
path: ./Dockerfile
remoteBuild: true
Full Configuration with Hooks
name: azd-deployment
metadata:
template: my-project@1.0.0
infra:
provider: bicep
path: ./infra
azure:
location: eastus2
services:
frontend:
project: ./src/frontend
language: ts
host: containerapp
docker:
path: ./Dockerfile
context: .
remoteBuild: true
backend:
project: ./src/backend
language: python
host: containerapp
docker:
path: ./Dockerfile
context: .
remoteBuild: true
hooks:
preprovision:
shell: sh
run: |
echo "Before provisioning..."
postprovision:
shell: sh
run: |
echo "After provisioning - set up RBAC, etc."
postdeploy:
shell: sh
run: |
echo "Frontend: ${SERVICE_FRONTEND_URI}"
echo "Backend: ${SERVICE_BACKEND_URI}"
Key azure.yaml Options
| Option | Description |
|---|---|
remoteBuild: true |
Build images in Azure Container Registry (recommended) |
context: . |
Docker build context relative to project path |
host: containerapp |
Deploy to Azure Container Apps |
infra.provider: bicep |
Use Bicep for infrastructure |
Environment Variables Flow
Three-Level Configuration
- Local
.env- For local development only .azure/<env>/.env- azd-managed, auto-populated from Bicep outputsmain.parameters.json- Maps env vars to Bicep parameters
Parameter Injection Pattern
// infra/main.parameters.json
{
"parameters": {
"environmentName": { "value": "${AZURE_ENV_NAME}" },
"location": { "value": "${AZURE_LOCATION=eastus2}" },
"azureOpenAiEndpoint": { "value": "${AZURE_OPENAI_ENDPOINT}" }
}
}
Syntax: ${VAR_NAME} or ${VAR_NAME=default_value}
Setting Environment Variables
# Set for current environment
azd env set AZURE_OPENAI_ENDPOINT "https://my-openai.openai.azure.com"
azd env set AZURE_SEARCH_ENDPOINT "https://my-search.search.windows.net"
# Set during init
azd env new prod
azd env set AZURE_OPENAI_ENDPOINT "..."
Bicep Output โ Environment Variable
// In main.bicep - outputs auto-populate .azure/<env>/.env
output SERVICE_FRONTEND_URI string = frontend.outputs.uri
output SERVICE_BACKEND_URI string = backend.outputs.uri
output BACKEND_PRINCIPAL_ID string = backend.outputs.principalId
Deployment Repeatability
Reconciliation and revision changes
- Bicep is declarative - Resources reconcile to desired state
- Remote builds tag uniquely - Image tags include deployment timestamp
- ACR reuses layers - Only changed layers upload
Preserve unmanaged changes deliberately
โฆ
Pertanyaan umum
Apa arti 'remoteBuild: true'?
Artinya image aplikasi Anda akan dibangun langsung di Azure, bukan di komputer lokal Anda. Cara ini umumnya lebih cepat dan efisien.
Apa itu 'hooks'?
Hooks adalah perintah yang bisa Anda atur untuk dijalankan sebelum atau sesudah tahap deployment tertentu, misalnya sebelum menyiapkan infrastruktur atau setelah aplikasi di-deploy.
Bagaimana azd mengelola konfigurasi environment?
Azd menggunakan file seperti '.env' dan 'main.parameters.json' untuk mengelola konfigurasi yang spesifik untuk setiap environment (seperti development, testing, atau production), sehingga informasi yang benar yang digunakan.
Detail
Deskripsi asli dari pembuat
Prepare and verify authorized Azure Container Apps deployments with azd. Use for azure.yaml, Bicep, remote builds, managed identity and post-deploy checks.
Popularitas
- Bintang GitHub
- 48k
- Peringkat
- #3876
- Lisensi
- MIT
- Diperbarui
- 15/10/2026
Komentar
- โฆ
Skill lain dari repositori ini
00-andruia-consultant
48kMembantu agent Anda memulai atau meningkatkan proyek AI. Agent menganalisis kode, menyarankan tools, dan membuat rencana aksi dalam bahasa Spanyol.
007
48kMemungkinkan agent Anda melakukan audit keamanan dan threat modeling. Berguna untuk melindungi proyek dari serangan dan celah keamanan.
10-andruia-skill-smith
48kMembantu agent Anda membuat atau meningkatkan tools AI. Agent mendefinisikan cara kerja tools, menulis dokumentasi, dan memvalidasi strukturnya.
20-andruia-niche-intelligence
48kMemungkinkan agent Anda membuat ringkasan industri tertentu. Berguna untuk memahami konteks, aturan, pola penggunaan, dan risiko proyek dengan sumber terpercaya.
Skill serupa
openclaw-update
394kMembantu agent Anda memperbarui OpenClaw Gateway yang sudah ada, dengan memilih metode pembaruan yang sesuai cara pemasangannya dan menjaga sesi Anda tetap berjalan.
diagnose-gateway
394kMembantu agent Anda mencari tahu mengapa OpenClaw Gateway gagal dengan memeriksa pengaturan, channel, dan port tanpa mengubah apa pun.
crabbox-apps
394kMembantu agent Anda membuka dan menjalankan aplikasi di mesin cloud sementara, lalu menampilkan tampilannya di panel samping chat Anda.