你当前正在访问 Microsoft Azure Global Edition 技术文档网站。 如果需要访问由世纪互联运营的 Microsoft Azure 中国技术文档网站,请访问 https://docs.azure.cn

Template Class

Container App versioned application definition. Defines the desired state of an immutable revision. Any changes to this section Will result in a new revision being created.

Constructor

Template(*, revision_suffix: str | None = None, termination_grace_period_seconds: int | None = None, init_containers: List[_models.InitContainer] | None = None, containers: List[_models.Container] | None = None, scale: _models.Scale | None = None, volumes: List[_models.Volume] | None = None, service_binds: List[_models.ServiceBind] | None = None, **kwargs: Any)

Keyword-Only Parameters

Name Description
revision_suffix
str

User friendly suffix that is appended to the revision name.

Default value: None
termination_grace_period_seconds
int

Optional duration in seconds the Container App Instance needs to terminate gracefully. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.

Default value: None
init_containers

List of specialized containers that run before app containers.

Default value: None
containers

List of container definitions for the Container App.

Default value: None
scale

Scaling properties for the Container App.

Default value: None
volumes

List of volume definitions for the Container App.

Default value: None
service_binds

List of container app services bound to the app.

Default value: None

Variables

Name Description
revision_suffix
str

User friendly suffix that is appended to the revision name.

termination_grace_period_seconds
int

Optional duration in seconds the Container App Instance needs to terminate gracefully. Value must be non-negative integer. The value zero indicates stop immediately via the kill signal (no opportunity to shut down). If this value is nil, the default grace period will be used instead. Set this value longer than the expected cleanup time for your process. Defaults to 30 seconds.

init_containers

List of specialized containers that run before app containers.

containers

List of container definitions for the Container App.

scale

Scaling properties for the Container App.

volumes

List of volume definitions for the Container App.

service_binds

List of container app services bound to the app.