Skip to content

Latest commit

 

History

History
131 lines (100 loc) · 2.7 KB

New-AzContainerAppVolumeObject.md

File metadata and controls

131 lines (100 loc) · 2.7 KB
external help file Module Name online version schema
Az.App-help.xml
Az.App
2.0.0

New-AzContainerAppVolumeObject

SYNOPSIS

Create an in-memory object for Volume.

SYNTAX

New-AzContainerAppVolumeObject [-MountOption <String>] [-Name <String>] [-Secret <ISecretVolumeItem[]>]
 [-StorageName <String>] [-StorageType <String>] [<CommonParameters>]

DESCRIPTION

Create an in-memory object for Volume.

EXAMPLES

Example 1: Create a Volume object for ContainerApp.

New-AzContainerAppVolumeObject -Name "volumeName" -StorageName "azpssa"
MountOption Name       StorageName StorageType
----------- ----       ----------- -----------
            volumeName azpssa

Create a Volume object for ContainerApp.

PARAMETERS

-MountOption

Mount options used while mounting the AzureFile. Must be a comma-separated string.

Type: System.String
Parameter Sets: (All)
Aliases:

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

-Name

Volume name.

Type: System.String
Parameter Sets: (All)
Aliases:

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

-Secret

List of secrets to be added in volume. If no secrets are provided, all secrets in collection will be added to volume. To construct, see NOTES section for SECRET properties and create a hash table.

Type: Microsoft.Azure.PowerShell.Cmdlets.App.Models.ISecretVolumeItem[]
Parameter Sets: (All)
Aliases:

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

-StorageName

Name of storage resource. No need to provide for EmptyDir and Secret.

Type: System.String
Parameter Sets: (All)
Aliases:

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

-StorageType

Storage type for the volume. If not provided, use EmptyDir.

Type: System.String
Parameter Sets: (All)
Aliases:

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

CommonParameters

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

INPUTS

OUTPUTS

Microsoft.Azure.PowerShell.Cmdlets.App.Models.Volume

NOTES

RELATED LINKS