
Skill
kickstart-deploy
deploy applications with Azure CLI and kubectl
Description
Deploy phase playbook — build, push, apply with Azure CLI and kubectl.
SKILL.md
Deploy Phase
Deploy using Azure CLI and kubectl. Execute each step via run_in_terminal, confirm between steps with vscode_askQuestions. Never auto-deploy.
Steps
- Build and push:
az acr build --registry <acr> --image <image>:<tag> -f <dockerfilePath> <buildContext>Use the build context and Dockerfile path from the structure map — never assume repo root (.). For monorepos, build each service from its own context. Tag with a version (e.g. v1.0.0), never:latest. - Get credentials:
az aks get-credentials --resource-group <rg> --name <cluster> --overwrite-existingkubelogin handles AAD auth automatically (verified in Pre-Deploy Check). Never use--admin. - Apply manifests:
kubectl apply -f k8s/ - Verify:
kubectl get pods -n <namespace>andkubectl get services -n <namespace>If pods not Ready, runkubectl describe pod <name>andkubectl logs <name>to diagnose. - Health-check the running app: don't declare success on pod readiness alone — actually hit the app and compare against the expected response:
- Via the gateway/service URL from
kubectl get httproute/kubectl get services:curl -sS -o /dev/null -w "%{http_code}" http://<url>/(expect 2xx/3xx). - Or in-cluster:
kubectl exec <pod> -n <namespace> -- curl -sS localhost:<port>/<health-path>. If the response isn't what the app should return (wrong status, error body, or logs show a missing entry point), classify as aclusterfailure and diagnose before reporting success.
- Via the gateway/service URL from
Error Handling
Classify failures:
- auth — Azure/registry authentication, RBAC, OIDC, kubeconfig
- config — missing or invalid configuration (subscription, RG, cluster, ACR, manifest)
- dependency — missing CLI tool, extension, or container image
- cluster — pod CrashLoopBackOff, ImagePullBackOff, scheduling, quota
Provide specific az or kubectl fix commands. Offer retry via vscode_askQuestions.
Post-Deployment
- Confirm the app actually responds at its external IP / gateway URL (the health-check above) — not just that the service has an address.
- Check Azure Monitor dashboards (managed Prometheus + Grafana auto-enabled).
- Set up alerts: CPU >80%, memory >85%, pod restarts >5.
Only mention GitHub Actions if the user asks about CI/CD.
More skills from the vscode-aks-tools repository
View all 19 skillskickstart-acr-integration
integrate Azure Container Registry with AKS
Jul 12AzureContainersDeploymentkickstart-bicep-authoring
author idiomatic Azure Bicep templates
Jul 12AzureBicepDeploymentInfrastructure as Codekickstart-cluster-status
monitor AKS cluster provisioning status
Jul 12AzureDeploymentKubernetesMonitoringkickstart-collaborator-voice
define agent voice and interaction patterns
Jul 12AgentsBrandingCommunicationskickstart-configure-infra
configure Azure infrastructure for AKS clusters
Jul 12AzureDeploymentInfrastructureKuberneteskickstart-design
propose target architecture on AKS
Jul 12ArchitectureAzureDeployment
More from Azure (Microsoft)
View publisherazure-arg-external-evaluation-policy-author
author and test Azure Resource Graph policies
azure-policy
Jul 12AzureComplianceGovernancePolicyazure-blueprints-migration
migrate Azure Blueprints to Template Specs
azure-blueprints
Jul 12AzureDeploymentInfrastructure as CodeMigrationapiview-feedback-resolution
resolve APIView feedback on Azure SDKs
azure-sdk-tools
Jul 12API DevelopmentAzureCode ReviewDocumentationazsdk-common-live-and-recorded-tests
deploy resources and run Azure SDK tests
azure-sdk-tools
Jul 12AzureDeploymentSDKTestingazsdk-common-prepare-release-plan
manage Azure SDK release plan work items
azure-sdk-tools
Jul 12AzureGitHubProject ManagementSDKazsdk-common-sdk-release
release Azure SDK packages
azure-sdk-tools
Jul 12AzureCI/CDDeploymentSDK