AzureDevops Self Hosted Agent in Kubernetes with Workload Identity or Application Registration
There is more than a few blog posts around about how to use the Azure DevOps agent in a container (and by extension Kubernetes), there are even a handful of examples for using an Entra Application Registrations or Workload Identies that miss out on a critical step - the ’exit’ needs a new token because they are not long lived!Both the examples below use the Dockerfile and start.sh script from the official docs as a base. ...