RousselTMLEARNING

Article · Azure DevOps: from discovery to expertise

Security and best practices

1. Governance #

Protecting what matters.

Guardrails #

Governance
  • Access through Microsoft Entra ID, groups and access levels (Stakeholder, Basic, Basic + Test Plans); short-lived, minimal-scope personal access tokens.
  • Secrets come from Azure Key Vault (linked variable group or AzureKeyVault@2 task) and are never written in the YAML.
  • The organization audit log traces permission, policy and connection changes; it can be streamed to a SIEM.

2. Troubleshooting and checking #

The most common errors.

Frequent errors #

SymptomLikely cause
No hosted parallelism has been purchased or grantedfree grant not requested: use a self-hosted agent or request it
"This pipeline needs permission to access a resource"protected resource: authorize the pipeline once
Job waiting without agentno online agent with the requested capabilities
Empty secret variable in a scriptnot passed through env:

The system.debug: true variable enables detailed logs; the "Download logs" view retrieves the whole run.

Checklist #

ItemCheck
Repospolicies on main: reviewer, build validation, linked items
Pipelinesmulti-stage YAML, shared templates, versioned tasks
SecurityOIDC, Key Vault, protected resources, separate pools
Deliveryenvironments with approvals, same artifact promoted
Good to know : GitHub Advanced Security for Azure DevOps brings secret scanning with push protection, dependency scanning and code scanning (CodeQL) directly into Azure Repos (paid option per active committer).

Commands to know #

Commands to know
  • az devops security group list -o table : security groups
  • az pipelines variable-group variable create --secret true … : secret variable
  • az devops invoke --area audit --resource auditlog : query the audit log

Sources #

Checked in November 2026: CI/CD platforms change every month, check versions and plans in the vendor's documentation.

📄 Azure DevOps security, governance and best practices →

My progress

  • ⏱ Estimated time : ≈ 3 min

Sign in to track your progress and take notes. Sign in

⭐ Rate this lesson

4.0 initial rating from the teaching team

Sign in to rate this lesson →

💬 Questions about this lesson

No questions yet: be the first to ask for help or share your configuration.

Ask a question about this lesson →

Recommended Articles

Microsoft Entra ID, RBAC and Azure Policy: identities, permissions and governance

Manage identities and access on Azure: Microsoft Entra ID (users, groups, MFA, conditional access...

Ansible: managing security (Vault, SSH, privileges and secrets)

Securing Ansible: Ansible Vault, SSH key authentication, become and sudo, no_log, hardening the c...

GitLab CI/CD best practices and troubleshooting

Running GitLab CI/CD day to day: speeding up pipelines, controlling compute minutes, organizing f...

GitHub Actions best practices and troubleshooting

Running GitHub Actions: speeding up and cutting costs, debugging (debug logs, act locally, gh run...

DevSecOps: securing the software supply chain end to end

Integrate security into the DevOps pipeline: shift-left, threat modeling, secret detection, SAST,...

End-to-end CI/CD (5/5): GitHub Actions, GitLab CI, Jenkins and Argo CD in practice

Compare and use CI/CD tools: GitHub Actions, GitLab CI, Jenkins, Argo CD and Flux; a complete pip...

End-to-end CI/CD (1/5): principles and anatomy of a pipeline

Understand end-to-end CI/CD: continuous integration, continuous delivery and continuous deploymen...

End-to-end CI/CD (3/5): artifacts, registries and environments

Deliver continuously: immutable, versioned artifacts, image and package registries, promoting the...

GitLab CI/CD: concepts and architecture

Discover GitLab CI/CD: the DevSecOps platform, the .gitlab-ci.yml file, pipelines, stages and job...

Support us

♥ SUPPORT US

Support RousselTM Learning

Courses, articles, labs and certificates stay free with no intrusive ads. A voluntary contribution, of any amount you choose, pays for hosting, lab environments and new content.

Contribute with PayPal Any amount · card or PayPal accountLearn more
QR code PayPal
Or scan this QR code with your phone

Thank you, every contribution counts!