QuickDevGuide

Home › Azure DevOps

Best Practices & Code Standards — Azure DevOps

Define all pipelines as YAML code stored in version control — never use the classic editor for production pipelines. YAML pipelines are reviewable, auditable, and reproducible. Use templates to share common pipeline logic across repositories and avoid duplication. Secrets & Security Never store secrets, passwords, or API keys in pipeline YAML files. Use Variable Groups linked to Azure Key Vault for secret management. Apply the principle of least privilege — pipeline service connections should have only the permissions they need. Environments & Quality Gates Use Environments with approval gates for production deployments. Enforce branch policies on protected branches: require PR reviews, passing CI builds, linked work items, and resolved comments before merging. Every merge to main should…

Key Takeaways