ArmAppContainersModelFactory.ContainerAppTemplate Method

Definition

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

public static Azure.ResourceManager.AppContainers.Models.ContainerAppTemplate ContainerAppTemplate(string revisionSuffix = default, long? terminationGracePeriodSeconds = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppContainers.Models.ContainerAppInitContainer> initContainers = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppContainers.Models.ContainerAppContainer> containers = default, Azure.ResourceManager.AppContainers.Models.ContainerAppScale scale = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppContainers.Models.ContainerAppVolume> volumes = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppContainers.Models.ContainerAppServiceBind> serviceBinds = default);
static member ContainerAppTemplate : string * Nullable<int64> * seq<Azure.ResourceManager.AppContainers.Models.ContainerAppInitContainer> * seq<Azure.ResourceManager.AppContainers.Models.ContainerAppContainer> * Azure.ResourceManager.AppContainers.Models.ContainerAppScale * seq<Azure.ResourceManager.AppContainers.Models.ContainerAppVolume> * seq<Azure.ResourceManager.AppContainers.Models.ContainerAppServiceBind> -> Azure.ResourceManager.AppContainers.Models.ContainerAppTemplate
Public Shared Function ContainerAppTemplate (Optional revisionSuffix As String = Nothing, Optional terminationGracePeriodSeconds As Nullable(Of Long) = Nothing, Optional initContainers As IEnumerable(Of ContainerAppInitContainer) = Nothing, Optional containers As IEnumerable(Of ContainerAppContainer) = Nothing, Optional scale As ContainerAppScale = Nothing, Optional volumes As IEnumerable(Of ContainerAppVolume) = Nothing, Optional serviceBinds As IEnumerable(Of ContainerAppServiceBind) = Nothing) As ContainerAppTemplate

Parameters

revisionSuffix
String

User friendly suffix that is appended to the revision name.

terminationGracePeriodSeconds
Nullable<Int64>

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
IEnumerable<ContainerAppInitContainer>

List of specialized containers that run before app containers.

containers
IEnumerable<ContainerAppContainer>

List of container definitions for the Container App.

scale
ContainerAppScale

Scaling properties for the Container App.

volumes
IEnumerable<ContainerAppVolume>

List of volume definitions for the Container App.

serviceBinds
IEnumerable<ContainerAppServiceBind>

List of container app services bound to the app.

Returns

A new ContainerAppTemplate instance for mocking.

Applies to