| title | mountReadOnly definition |
|---|---|
| description | Volumes to mount read-only. |
| ms.date | 04/02/2026 |
| monikerRange | <=azure-pipelines |
| author | steved0x |
| ms.author | sdanie |
:::moniker range="<=azure-pipelines"
Volumes to mount read-only, the default is all false.
:::moniker-end
:::moniker range="<=azure-pipelines"
mountReadOnly:
work: boolean # Mount the work directory as readonly.
externals: boolean # Mount the externals directory as readonly.
tools: boolean # Mount the tools directory as readonly.
tasks: boolean # Mount the tasks directory as readonly.:::moniker-end
:::moniker range="<=azure-pipelines"
Note
This definition is a supporting definition and is not intended for use directly in a pipeline. This article provides the YAML syntax for this supporting type, but does not show usage examples. For more information and examples for using this supporting type, see the following Definitions that reference this definition articles.
Definitions that reference this definition: jobs.job.container, resources.containers.container
:::moniker-end
:::moniker range="<=azure-pipelines"
work boolean.
Mount the work directory as readonly.
:::moniker-end
:::moniker range="<=azure-pipelines"
externals boolean.
Mount the externals directory as readonly.
:::moniker-end
:::moniker range="<=azure-pipelines"
tools boolean.
Mount the tools directory as readonly.
:::moniker-end
:::moniker range="<=azure-pipelines"
tasks boolean.
Mount the tasks directory as readonly.
:::moniker-end