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. To construct, see NOTES section for SECRET properties and create a hash table.
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
Azure PowerShell
Feedback
https://aka.ms/ContentUserFeedback.
Coming soon: Throughout 2024 we will be phasing out GitHub Issues as the feedback mechanism for content and replacing it with a new feedback system. For more information see:Submit and view feedback for