ArmAppContainersModelFactory.ContainerAppContainer Method

Definition

Container App container definition.

public static Azure.ResourceManager.AppContainers.Models.ContainerAppContainer ContainerAppContainer(string image = default, Azure.ResourceManager.AppContainers.Models.ImageType? imageType = default, string name = default, System.Collections.Generic.IEnumerable<string> command = default, System.Collections.Generic.IEnumerable<string> args = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppContainers.Models.ContainerAppEnvironmentVariable> env = default, Azure.ResourceManager.AppContainers.Models.AppContainerResources resources = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppContainers.Models.ContainerAppVolumeMount> volumeMounts = default, System.Collections.Generic.IEnumerable<Azure.ResourceManager.AppContainers.Models.ContainerAppProbe> probes = default);
static member ContainerAppContainer : string * Nullable<Azure.ResourceManager.AppContainers.Models.ImageType> * string * seq<string> * seq<string> * seq<Azure.ResourceManager.AppContainers.Models.ContainerAppEnvironmentVariable> * Azure.ResourceManager.AppContainers.Models.AppContainerResources * seq<Azure.ResourceManager.AppContainers.Models.ContainerAppVolumeMount> * seq<Azure.ResourceManager.AppContainers.Models.ContainerAppProbe> -> Azure.ResourceManager.AppContainers.Models.ContainerAppContainer
Public Shared Function ContainerAppContainer (Optional image As String = Nothing, Optional imageType As Nullable(Of ImageType) = Nothing, Optional name As String = Nothing, Optional command As IEnumerable(Of String) = Nothing, Optional args As IEnumerable(Of String) = Nothing, Optional env As IEnumerable(Of ContainerAppEnvironmentVariable) = Nothing, Optional resources As AppContainerResources = Nothing, Optional volumeMounts As IEnumerable(Of ContainerAppVolumeMount) = Nothing, Optional probes As IEnumerable(Of ContainerAppProbe) = Nothing) As ContainerAppContainer

Parameters

image
String

Container image tag.

imageType
Nullable<ImageType>

The type of the image. Set to CloudBuild to let the system manages the image, where user will not be able to update image through image field. Set to ContainerImage for user provided image.

name
String

Custom container name.

command
IEnumerable<String>

Container start command.

args
IEnumerable<String>

Container start command arguments.

env
IEnumerable<ContainerAppEnvironmentVariable>

Container environment variables.

resources
AppContainerResources

Container resource requirements.

volumeMounts
IEnumerable<ContainerAppVolumeMount>

Container volume mounts.

probes
IEnumerable<ContainerAppProbe>

List of probes for the container.

Returns

A new ContainerAppContainer instance for mocking.

Applies to