# Azure Kubernetes App Deploy

> Use when deploying an existing web application or API to an already-running Azure Kubernetes Service cluster. Detects the framework, generates a Dockerfile and Kubernetes manifests, validates against AKS Deployment Safeguards, and deploys with verification. WHEN: deploy app to AKS, deploy to existing AKS cluster, containerize app for Kubernetes, generate K8s manifests for Azure, set up CI/CD for AKS, my AKS deployment is failing safeguard checks, I have a Django/Express/Spring Boot app to run on AKS. DO NOT USE FOR: creating or provisioning an AKS cluster (use azure-kubernetes), assessing migration to AKS Automatic (use azure-kubernetes-automatic-readiness), or deploying to non-AKS targets like Web Apps, Container Apps, or Functions.

- Skill: `paulasilvatech/azure-kubernetes-app-deploy-2` (Agent Skill, multi-file: 42 files)
- Install (CLI): `npx skillmds@latest add paulasilvatech/azure-kubernetes-app-deploy-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/paulasilvatech/azure-kubernetes-app-deploy-2/raw
- Safety review: pending
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: DevOps & Infra
- License: MIT
- Author: paulasilvatech (https://skillmd.com/u/paulasilvatech)
- Updated: 2026-09-17
- Page: https://skillmd.com/skills/paulasilvatech/azure-kubernetes-app-deploy-2

---


# Deploy to AKS

**Use when:** deploying a web app/API to AKS; containerizing for Kubernetes; generating manifests; AKS CI/CD; DS001–DS013 failures.

**Not for:** provisioning clusters (`azure-kubernetes`), AKS Automatic readiness (`azure-kubernetes-automatic-readiness`), non-AKS targets.

## When to invoke

- "Deploy my web app to an existing AKS cluster."
- "Containerize this API and generate Kubernetes manifests."
- "Set up CI/CD for my AKS deployment."
- "My AKS deployment is failing Deployment Safeguards checks."

## Workflow

Requires: existing AKS cluster, `az login`, `kubectl` configured. Follow `phases/quick-deploy.md`. On failure: `references/rollback.md`.

## References

- [detection.md](./references/detection.md) — framework/port/health detection
- [safeguards.md](./references/safeguards.md) — DS001-DS013 checklist
- [workload-identity.md](./references/workload-identity.md) — Workload Identity setup
- [rollback.md](./references/rollback.md) — recovery procedures
- [base-images.md](./references/base-images.md) — base image policy and `<LATEST_STABLE_*>` resolution

## Knowledge Packs

Load `knowledge-packs/frameworks/<framework>.md` per detected framework. Available: `spring-boot`, `express`, `nextjs`, `fastapi`, `django`, `nestjs`, `aspnet-core`, `go`, `flask`

## Templates

`templates/` (dockerfiles/, k8s/, github-actions/, mermaid/).

## Output template

```markdown
## AKS deployment result

**Status:** deployed | failed | blocked
**Summary:** <one sentence covering scope and outcome>

### Details
Detected framework, generated Dockerfile and manifests, and rollout status.

### Validation
- <check performed>: <result and evidence>
```

## Quality gate

- [ ] Manifests satisfy the Deployment Safeguards checklist.
- [ ] Rollout status and pod health were verified after apply.
- [ ] The output follows `## Output template` exactly.
- [ ] Every reported check was performed and its evidence is shown.
- [ ] Irreversible Azure actions were confirmed with the user first.

