Volume Class

Volume definitions for the Container App.

Constructor

Volume()

Variables

Name Description
name
str

Volume name.

storage_type
Union[str, <xref:"StorageType">]

Storage type for the volume. If not provided, use EmptyDir. Known values are: "AzureFile", "EmptyDir", "Secret", and "NfsAzureFile".

storage_name
str

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

secrets
list[<xref:"SecretVolumeItem">]

List of secrets to be added in volume. If no secrets are provided, all secrets in collection will be added to volume.

mount_options
str

Mount options used while mounting the Azure file share or NFS Azure file share. Must be a comma-separated string.

Attributes

mountOptions

Mount options used while mounting the Azure file share or NFS Azure file share. Must be a comma-separated string.

mountOptions: str

name

Volume name.

name: str

secrets

List of secrets to be added in volume. If no secrets are provided, all secrets in collection will be added to volume.

secrets: list['SecretVolumeItem']

storageName

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

storageName: str

storageType

"AzureFile", "EmptyDir", "Secret", and "NfsAzureFile".

storageType: str | StorageType