New-AzContainerAppVolumeMountObject

Create an in-memory object for VolumeMount.

Syntax

New-AzContainerAppVolumeMountObject
   [-MountPath <String>]
   [-SubPath <String>]
   [-VolumeName <String>]
   [<CommonParameters>]

Description

Create an in-memory object for VolumeMount.

Examples

Example 1: Create a VolumeMount object for ContainerApp.

New-AzContainerAppVolumeMountObject -MountPath "/mountPath" -VolumeName "VolumeName"

MountPath  SubPath VolumeName
---------  ------- ----------
/mountPath         VolumeName

Create a VolumeMount object for ContainerApp.

Parameters

-MountPath

Path within the container at which the volume should be mounted.Must not contain ':'.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-SubPath

Path within the volume from which the container's volume should be mounted. Defaults to "" (volume's root).

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

-VolumeName

This must match the Name of a Volume.

Type:String
Position:Named
Default value:None
Required:False
Accept pipeline input:False
Accept wildcard characters:False

Outputs

VolumeMount