New-AzContainerAppVolumeObject
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: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-Name
Volume name.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
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.
Type: | ISecretVolumeItem[] |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageName
Name of storage resource. No need to provide for EmptyDir and Secret.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
-StorageType
Storage type for the volume. If not provided, use EmptyDir.
Type: | String |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Outputs
Collabora con noi su GitHub
L'origine di questo contenuto è disponibile in GitHub, in cui è anche possibile creare ed esaminare i problemi e le richieste pull. Per ulteriori informazioni, vedere la guida per i collaboratori.