BrainyBeeBrainyBee
ExploreBlogStart Studying
HomeDesigning and Implementing Microsoft DevOps Solutions (AZ-400)Azure DevOps service connections and PATs
Lesson213 words

Azure DevOps service connections and PATs

Implement and manage Azure DevOps service connections and PATs

Service connections

A service connection stores how a pipeline authenticates to an external system. For Azure Resource Manager the current pattern is workload identity federation — a managed identity or app registration with a federated credential, and no secret stored.

Two authorisation controls matter:

  • Pipeline permissions — authorise each pipeline individually rather than granting access to all pipelines. The "grant access permission to all pipelines" checkbox is convenient and is exactly what lets an unrelated pipeline use your production credential.
  • Checks — a service connection is a protected resource, so its owner can attach approvals and checks.

The Azure DevOps issuer is being deprecated for workload identity federation. Connections flagged as deprecated must be converted to the Microsoft Entra issuer; convert the existing connection rather than creating a replacement.

Personal access tokens

A PAT is a user credential. Scope it minimally, set the shortest workable expiry, and never use one where a service connection or managed identity would do.

The recurring failure: a PAT belonging to an engineer who has left, still authenticating a nightly pipeline, until it expires and the pipeline breaks with an authentication error nobody can explain.

Primary sources

  • https://learn.microsoft.com/en-us/azure/devops/pipelines/release/configure-workload-identity
  • https://learn.microsoft.com/en-us/azure/devops/pipelines/library/service-endpoints
  • https://learn.microsoft.com/en-us/azure/devops/organizations/accounts/use-personal-access-tokens-to-authenticate
All Designing and Implementing Microsoft DevOps Solutions (AZ-400) Study Resources

Related Notes

  • Agent and runner infrastructure421 words
  • Agent and runner infrastructure — quick notes150 words
  • Alerting on pipeline events255 words
  • Alerting on pipeline events — quick notes94 words
  • Analyzing usage and application performance241 words
  • Analyzing usage and application performance — quick notes73 words
  • Appropriate access levels217 words
  • Appropriate access levels — quick notes85 words
  • Automating container scanning277 words
  • Automating container scanning — quick notes96 words
  • Automating documentation from Git history191 words
  • Automating documentation from Git history — quick notes55 words

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up.

Start Studying

Ready to study Designing and Implementing Microsoft DevOps Solutions (AZ-400)?

Practice tests, flashcards, and all study notes — free, no sign-up needed.

Start Studying — Free
Designing and Implementing Microsoft DevOps Solutions (AZ-400) ResourcesExplore All HivesBlogHome

© 2026 BrainyBee. Free AI-powered exam prep.