你当前正在访问 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()

Variables

Name Description
revisionSuffix
str

User friendly suffix that is appended to the revision name.

terminationGracePeriodSeconds
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.

initContainers
list[<xref:"InitContainer">]

List of specialized containers that run before app containers.

containers
list[<xref:"Container">]

List of container definitions for the Container App.

scale
<xref:<xref:"Scale">>

Scaling properties for the Container App.

volumes
list[<xref:"Volume">]

List of volume definitions for the Container App.

serviceBinds
list[<xref:"ServiceBind">]

List of container app services bound to the app.

Attributes

containers

List of container definitions for the Container App.

containers: list[azure.mgmt.appcontainers.types.Container]

initContainers

List of specialized containers that run before app containers.

initContainers: list[azure.mgmt.appcontainers.types.InitContainer]

revisionSuffix

User friendly suffix that is appended to the revision name.

revisionSuffix: str

scale

Scaling properties for the Container App.

scale: Scale

serviceBinds

List of container app services bound to the app.

serviceBinds: list[azure.mgmt.appcontainers.types.ServiceBind]

terminationGracePeriodSeconds

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.

terminationGracePeriodSeconds: int

volumes

List of volume definitions for the Container App.

volumes: list[azure.mgmt.appcontainers.types.Volume]