Volume Class

Volume definitions for the Container App.

Inheritance
azure.mgmt.appcontainers._serialization.Model
Volume

Constructor

Volume(*, name: str | None = None, storage_type: str | _models.StorageType | None = None, storage_name: str | None = None, secrets: List[_models.SecretVolumeItem] | None = None, mount_options: str | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
name
str

Volume name.

storage_type

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

storage_name
str

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

secrets

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 AzureFile. Must be a comma-separated string.

Variables

Name Description
name
str

Volume name.

storage_type

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

storage_name
str

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

secrets

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 AzureFile. Must be a comma-separated string.