A Windows server hosts a self-hosted Azure Pipelines agent. Its local identities have these duties:
- PlatformOps contains the DevOps administrators who investigate agent failures.
- AgentSvc is the account running the agent process.
- ProjectAuthors contains developers who edit repositories and have no agent administration duties.
Which access assignment follows Azure Pipelines security guidance for the agent's local directory?
Why
The agent directory can contain sensitive files, so its access should be restricted. PlatformOps needs access for troubleshooting, and AgentSvc needs access to run the agent; ProjectAuthors has no stated local duty requiring access.
- Not correct: Grant access to PlatformOps and ProjectAuthors. This omits the identity running the agent. The source recommends directory access for that identity as well as DevOps administrators.
- Not correct: Grant access to PlatformOps, AgentSvc, and ProjectAuthors. ProjectAuthors performs neither required local duty. Adding that group broadens access beyond the source's recommendation to restrict the directory to DevOps administrators and the agent's execution identity.
- Correct: Grant access to PlatformOps and AgentSvc. These are the DevOps administrators and the identity running the agent. This matches the source's directory-access recommendation and satisfies both required local duties.
- Not correct: Grant access to AgentSvc and ProjectAuthors. This omits the administrators who must investigate failures. The source includes DevOps administrators among the identities that should have access to the agent directory.
Source
- Deploy an Azure Pipelines agent on Windows - Azure PipelinesMicrosoft Learn