你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

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