Upravit

Sdílet prostřednictvím


New-AzContainerAppVolumeMountObject

Create an in-memory object for VolumeMount.

Syntax

Default (Default)

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 ':'.

Parameter properties

Type:String
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

-SubPath

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

Parameter properties

Type:String
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

-VolumeName

This must match the Name of a Volume.

Parameter properties

Type:String
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