Edit

Share via


New-AzContainerInstanceVolumeMountObject

Create a in-memory object for VolumeMount

Syntax

Default (Default)

New-AzContainerInstanceVolumeMountObject
    -MountPath <String>
    -Name <String>
    [-ReadOnly <Boolean>]
    [<CommonParameters>]

Description

Create a in-memory object for VolumeMount

Examples

Example 1: Specify a volume mount available to a container instance

New-AzContainerInstanceVolumeMountObject -Name "mnt" -MountPath "/mnt/azfile" -ReadOnly $true
MountPath   Name ReadOnly
---------   ---- --------
/mnt/azfile mnt  True

This command specifies a volume mount available to a container instance

Parameters

-MountPath

The path within the container where the volume should be mounted. Must not contain colon (:).

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-Name

The name of the volume mount.

Parameter properties

Type:String
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:True
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

-ReadOnly

The flag indicating whether the volume mount is read-only.

Parameter properties

Type:Boolean
Default value:None
Supports wildcards:False
DontShow:False

Parameter sets

(All)
Position:Named
Mandatory:False
Value from pipeline:False
Value from pipeline by property name:False
Value from remaining arguments:False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutBuffer, -OutVariable, -PipelineVariable, -ProgressAction, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

Outputs

VolumeMount