ContainerCodePackageProperties Class

Describes a container and its runtime properties.

Variables are only populated by the server, and will be ignored when sending a request.

All required parameters must be populated in order to send to Azure.

Inheritance
ContainerCodePackageProperties

Constructor

ContainerCodePackageProperties(*, name: str, image: str, resources, image_registry_credential=None, entry_point: Optional[str] = None, commands=None, environment_variables=None, settings=None, labels=None, endpoints=None, volume_refs=None, volumes=None, diagnostics=None, reliable_collections_refs=None, liveness_probe=None, readiness_probe=None, **kwargs)

Parameters

name
str
Required

Required. The name of the code package.

image
str
Required

Required. The Container image to use.

image_registry_credential
ImageRegistryCredential
Required

Image registry credential.

entry_point
str
Required

Override for the default entry point in the container.

commands
list[str]
Required

Command array to execute within the container in exec form.

environment_variables
list[EnvironmentVariable]
Required

The environment variables to set in this container

settings
list[Setting]
Required

The settings to set in this container. The setting file path can be fetched from environment variable "Fabric_SettingPath". The path for Windows container is "C:\secrets". The path for Linux container is "/var/secrets".

labels
list[ContainerLabel]
Required

The labels to set in this container.

endpoints
list[EndpointProperties]
Required

The endpoints exposed by this container.

resources
ResourceRequirements
Required

Required. The resources required by this container.

volume_refs
list[VolumeReference]
Required

Volumes to be attached to the container. The lifetime of these volumes is independent of the application's lifetime.

volumes
list[ApplicationScopedVolume]
Required

Volumes to be attached to the container. The lifetime of these volumes is scoped to the application's lifetime.

diagnostics
DiagnosticsRef
Required

Reference to sinks in DiagnosticsDescription.

reliable_collections_refs
list[ReliableCollectionsRef]
Required

A list of ReliableCollection resources used by this particular code package. Please refer to ReliableCollectionsRef for more details.

liveness_probe
list[Probe]
Required

An array of liveness probes for a code package. It determines when to restart a code package.

readiness_probe
list[Probe]
Required

An array of readiness probes for a code package. It determines when to unpublish an endpoint.

Variables

instance_view
ContainerInstanceView

Runtime information of a container instance.