Share via


ComputeBatchModelFactory.ContainerHostBatchBindMountEntry Method

Definition

The entry of path and mount mode you want to mount into task container.

public static Azure.Compute.Batch.ContainerHostBatchBindMountEntry ContainerHostBatchBindMountEntry(Azure.Compute.Batch.ContainerHostDataPath? source = default, bool? isReadOnly = default);
static member ContainerHostBatchBindMountEntry : Nullable<Azure.Compute.Batch.ContainerHostDataPath> * Nullable<bool> -> Azure.Compute.Batch.ContainerHostBatchBindMountEntry
Public Shared Function ContainerHostBatchBindMountEntry (Optional source As Nullable(Of ContainerHostDataPath) = Nothing, Optional isReadOnly As Nullable(Of Boolean) = Nothing) As ContainerHostBatchBindMountEntry

Parameters

source
Nullable<ContainerHostDataPath>

The path which be mounted to container customer can select.

isReadOnly
Nullable<Boolean>

Mount this source path as read-only mode or not. Default value is false (read/write mode). For Linux, if you mount this path as a read/write mode, this does not mean that all users in container have the read/write access for the path, it depends on the access in host VM. If this path is mounted read-only, all users within the container will not be able to modify the path.

Returns

A new ContainerHostBatchBindMountEntry instance for mocking.

Applies to